Skip to content

Commit

Permalink
Bugfix: opencl: Ignore error getting device ids from platforms unless…
Browse files Browse the repository at this point in the history
… they are explicitly chosen
  • Loading branch information
luke-jr committed Aug 9, 2012
1 parent 67889bc commit 4105b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocl.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ int clDevicesNum(void) {
status = clGetDeviceIDs(platform, CL_DEVICE_TYPE_GPU, 0, NULL, &numDevices);
if (status != CL_SUCCESS) {
applog(LOG_ERR, "Error %d: Getting Device IDs (num)", status);
if (i < numPlatforms - 1)
if (i != opt_platform_id)
continue;
return -1;
}
Expand Down

0 comments on commit 4105b04

Please sign in to comment.