mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 08:19:02 +00:00
Re-enabling narrowing errors (#1144)
Fixes narrowing conversion build errors in test_common Removing disable of narrowing errors in main CMakeLists.txt and moving it down to specific test_conformance suite's CMakeLists.txt where there are many more build errors revealed from this fix. Fixes a few simple issues under test_conformance in the process. Contributes #787 Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com> --------- Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>
This commit is contained in:
@@ -165,7 +165,8 @@ struct CreateInvalidMultiDeviceProperty : 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;
|
||||
@@ -238,7 +239,8 @@ struct CreateInvalidDevice : 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