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.
This commit is contained in:
Ben Ashbaugh
2024-10-16 00:18:59 -07:00
committed by GitHub
parent 115068e2c4
commit c071db7637

View File

@@ -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<cl_device_partition_property>(maxComputeUnits / 2), 0
};
cl_uint deviceCount = 0;