Lines Matching refs:CL
10 #define __NO_STD_VECTOR // Uses cl::vectpr instead of std::vectpr
11 #define __NO_STD_STRING // Uses cl::STRING_CLASS instead of std::string
14 # include <OpenCL/cl.hpp>
16 # include <CL/cl.hpp>
54 static bool init_device_and_context(cl::Device* device, cl::Context* context) {
56 cl::vector<cl::Platform> platformList;
57 cl::Platform::get(&platformList);
61 cl::Platform& platform = platformList[0];
62 cl::STRING_CLASS platformName;
67 cl::vector<cl::Device> deviceList;
73 cl::STRING_CLASS deviceName;
77 // Create a CL context and check for all errors
79 *context = cl::Context(deviceList, NULL, error_notify, NULL, &contextErr);
90 cl::Device device;
91 cl::Context context;