|
@@ -158,7 +158,7 @@ int main(int argc, char** argv) {
|
|
|
if (error != CL_SUCCESS) fatal_CL(error, __LINE__);
|
|
|
|
|
|
// Print the chosen platform (if there are multiple platforms, choose the first one)
|
|
|
- cl_platform_id platform = platforms[0];
|
|
|
+ cl_platform_id platform = platforms[1];
|
|
|
char pbuf[100];
|
|
|
error = clGetPlatformInfo(platform, CL_PLATFORM_VENDOR, sizeof(pbuf), pbuf, NULL);
|
|
|
if (error != CL_SUCCESS) fatal_CL(error, __LINE__);
|
|
@@ -166,7 +166,7 @@ int main(int argc, char** argv) {
|
|
|
|
|
|
// Create a GPU context
|
|
|
cl_context_properties context_properties[3] = { CL_CONTEXT_PLATFORM, (cl_context_properties) platform, 0};
|
|
|
- context = clCreateContextFromType(context_properties, CL_DEVICE_TYPE_GPU, NULL, NULL, &error);
|
|
|
+ context = clCreateContextFromType(context_properties, CL_DEVICE_TYPE_CPU, NULL, NULL, &error);
|
|
|
if (error != CL_SUCCESS) fatal_CL(error, __LINE__);
|
|
|
|
|
|
// Get and print the chosen device (if there are multiple devices, choose the first one)
|