OpenCL - Wikipedia, the free encyclopedia
// create a compute context with GPU device context = clCreateContextFromType (NULL, CL_DEVICE_TYPE_GPU, NULL, NULL, NULL); // create a command queue clGetDeviceIDs (NULL, CL_DEVICE_TYPE_DEFAULT, 1, & device_id, NULL ); queue = clCreateCommandQueue ......