Skip to content
Commit 378e671a authored by Karl Rupp's avatar Karl Rupp
Browse files

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.
parent 311badfd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment