Substantial refactoring of OpenCL backend to allow for multithreading.
Instead of using the global routines viennacl::ocl::current_XYZ(), now the context is obtained from the kernel or the memory buffer. ocl::handle<> thus holds a reference to its ocl::context, a ocl::kernel holds a reference to the ocl::program and ocl::context, and a program holds a reference to context. init() routines for the kernel sources now take the context as parameter.
Loading
Please register or sign in to comment