KhronosGroup / OpenCL-CTS

The OpenCL Conformance Tests
Apache License 2.0
178 stars 187 forks source link

Fixed incorrect usage of clGetDeviceIDs num_devices #1952

Closed paulfradgley closed 1 week ago

paulfradgley commented 2 months ago

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_multidevice 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.

bashbaug commented 1 week ago

Merging as discussed in the June 25th teleconference.