Skip to content

Commit

Permalink
Fixed incorrect usage of clGetDeviceIDs num_devices
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfradgley authored Apr 19, 2024
1 parent 7dc9593 commit 9dde828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_conformance/events/test_event_dependencies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ int test_event_enqueue_wait_for_events_run_test(
error = clGetDeviceIDs(platform, CL_DEVICE_TYPE_ALL, 2, two_device_ids,
&number_returned);
test_error(error, "clGetDeviceIDs for CL_DEVICE_TYPE_ALL failed.");
if (number_returned != 2)
if (number_returned >= 2)
{
log_info("Failed to obtain two devices. Test can not run.\n");
free(two_device_ids);
Expand Down

0 comments on commit 9dde828

Please sign in to comment.