| 29 | // --------------------------------------------------------------------------- |
| 30 | |
| 31 | OpenCL_MixIn::OpenCL_MixIn(int opencl_platform, int opencl_device) |
| 32 | : global_range{ 1, 1, 1 } |
| 33 | , local_work_size{ 1, 1, 1 } |
| 34 | , iPlatform(opencl_platform) |
| 35 | , iDevice(opencl_device) |
| 36 | , need_reload_context(true) |
| 37 | , need_write_to_opencl_buffers(true) |
| 38 | , kernel_function_name("rd_compute") |
| 39 | , device_id(NULL) |
| 40 | , context(NULL) |
| 41 | , command_queue(NULL) |
| 42 | , kernel(NULL) |
| 43 | , program(NULL) |
| 44 | , iCurrentBuffer(0) |
| 45 | { |
| 46 | if(LinkOpenCL()!= CL_SUCCESS) |
| 47 | throw runtime_error("Failed to load dynamic library for OpenCL"); |
| 48 | } |
| 49 | |
| 50 | // --------------------------------------------------------------------------- |
| 51 |
nothing calls this directly
no outgoing calls
no test coverage detected