From c071db7637974f7b42dacc2e8747c94eb18e35cc Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Wed, 16 Oct 2024 00:18:59 -0700 Subject: [PATCH] fixes a narrowing warning (treated as an error) affecting some platforms (#2117) Looks like https://github.com/KhronosGroup/OpenCL-CTS/pull/2063 has a "narrowing" warning that is now treated as an error and is hence causing CI builds to fail. Applies the same fix as https://github.com/KhronosGroup/OpenCL-CTS/pull/2107 to fix this warning. --- .../extensions/cl_khr_semaphore/test_semaphores_queries.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test_conformance/extensions/cl_khr_semaphore/test_semaphores_queries.cpp b/test_conformance/extensions/cl_khr_semaphore/test_semaphores_queries.cpp index 8d988c7152..671a8c21ca 100644 --- a/test_conformance/extensions/cl_khr_semaphore/test_semaphores_queries.cpp +++ b/test_conformance/extensions/cl_khr_semaphore/test_semaphores_queries.cpp @@ -185,7 +185,8 @@ struct SemaphoreMultiDeviceContextQueries : public SemaphoreTestBase test_error(err, "Unable to get maximal number of compute units"); cl_device_partition_property partitionProp[] = { - CL_DEVICE_PARTITION_EQUALLY, maxComputeUnits / 2, 0 + CL_DEVICE_PARTITION_EQUALLY, + static_cast(maxComputeUnits / 2), 0 }; cl_uint deviceCount = 0;