ocl: Add a function to unload a run-time cached program

This function is the counterpart of "Context::getProg".
With this function, users have chance to unload a program
from global run-time cached programs, and save resource.
This commit is contained in:
Wu Zhiwen
2017-08-25 08:42:11 +08:00
parent f670a99270
commit da3da84a20
2 changed files with 23 additions and 1 deletions
@@ -248,6 +248,7 @@ public:
const Device& device(size_t idx) const;
Program getProg(const ProgramSource& prog,
const String& buildopt, String& errmsg);
void unloadProg(Program& prog);
static Context& getDefault(bool initialize = true);
void* ptr() const;