Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cf91139

Browse files
authoredMar 23, 2017
Merge pull request #312 from clMathLibraries/revert-311-device-all
Revert "Use CL_DEVICE_TYPE_ALL for all samples"
2 parents 7722aa8 + 0fe72ce commit cf91139

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+56
-51
lines changed
 

‎src/samples/example_chbmv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ main(void)
9191
return 1;
9292
}
9393

94-
err = clGetDeviceIDs(platform, CL_DEVICE_TYPE_ALL, 1, &device, NULL);
94+
err = clGetDeviceIDs(platform, CL_DEVICE_TYPE_GPU, 1, &device, NULL);
9595
if (err != CL_SUCCESS) {
9696
printf( "clGetDeviceIDs() failed with %d\n", err );
9797
return 1;

‎src/samples/example_cher.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ main(void)
8484
return 1;
8585
}
8686

87-
err = clGetDeviceIDs(platform, CL_DEVICE_TYPE_ALL, 1, &device, NULL);
87+
err = clGetDeviceIDs(platform, CL_DEVICE_TYPE_GPU, 1, &device, NULL);
8888
if (err != CL_SUCCESS) {
8989
printf( "clGetDeviceIDs() failed with %d\n", err );
9090
return 1;

0 commit comments

Comments
 (0)
Please sign in to comment.