Lines Matching refs:Device
53 /// Creates a device and context with OpenCL
54 static bool init_device_and_context(cl::Device* device, cl::Context* context) {
66 // Query for a device
67 cl::vector<cl::Device> deviceList;
71 // Print some information about the device for debugging
72 *device = deviceList[0];
74 device->getInfo(CL_DEVICE_NAME, &deviceName);
75 SkDebugf("Device index 0 is named %s\n", deviceName.c_str());
90 cl::Device device;
92 if (!init_device_and_context(&device, &context)) {
98 return clDiffer->init(device(), context());