mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user