From 9dde8280f9842b6abcd87b2bc03087205a89aee5 Mon Sep 17 00:00:00 2001 From: paulfradgley <39525348+paulfradgley@users.noreply.github.com> Date: Fri, 19 Apr 2024 13:17:42 +0100 Subject: [PATCH] Fixed incorrect usage of clGetDeviceIDs num_devices --- test_conformance/events/test_event_dependencies.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_conformance/events/test_event_dependencies.cpp b/test_conformance/events/test_event_dependencies.cpp index 4efe1a6562..c379cef9d3 100644 --- a/test_conformance/events/test_event_dependencies.cpp +++ b/test_conformance/events/test_event_dependencies.cpp @@ -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);