MCPcopy Create free account
hub / github.com/GollyGang/ready / OpenCL_MixIn

Method OpenCL_MixIn

src/readybase/OpenCL_MixIn.cpp:31–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29// ---------------------------------------------------------------------------
30
31OpenCL_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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected