OpenCL-CTS icon indicating copy to clipboard operation
OpenCL-CTS copied to clipboard

Fixed incorrect usage of clGetDeviceIDs num_devices

Open paulfradgley opened this issue 1 year ago • 0 comments

clGetDeviceIDs 'num_devices' output parameter is described as:

num_devices returns the number of OpenCL devices available that match device_type.

but the test_events out_of_order_event_waitlist_multi_queue_multi_device test expects that after calling: clGetDeviceIDs(platform, CL_DEVICE_TYPE_ALL, 2, two_device_ids, &number_returned);

the content of number_returned needs to be 2, but it should be valid to return a larger number.

paulfradgley avatar Apr 19 '24 12:04 paulfradgley