|
@@ -92,7 +92,7 @@ kernel_gpu_opencl_wrapper( par_str par_cpu,
|
|
|
fatal_CL(error, __LINE__);
|
|
|
|
|
|
// Select the 1st platform
|
|
|
- cl_platform_id platform = platforms[0];
|
|
|
+ cl_platform_id platform = platforms[1];
|
|
|
|
|
|
// Get the name of the selected platform and print it (if there are multiple platforms, choose the first one)
|
|
|
char pbuf[100];
|
|
@@ -117,7 +117,7 @@ kernel_gpu_opencl_wrapper( par_str par_cpu,
|
|
|
// Create context for selected platform being GPU
|
|
|
cl_context context;
|
|
|
context = clCreateContextFromType( context_properties,
|
|
|
- CL_DEVICE_TYPE_GPU,
|
|
|
+ CL_DEVICE_TYPE_CPU,
|
|
|
NULL,
|
|
|
NULL,
|
|
|
&error);
|