Skip to content

Commit

Permalink
fixes a narrowing warning (treated as an error) affecting some platfo…
Browse files Browse the repository at this point in the history
…rms (#2117)

Looks like #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
#2107 to fix this
warning.
  • Loading branch information
bashbaug authored Oct 16, 2024
1 parent 115068e commit c071db7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c071db7

Please sign in to comment.