[vdi] Fix -Wsign-compare warning. NFC.

- TeamCity build failed as `-Werror` is turned on.

Change-Id: Icd2cbd45f60e3c296894e8e73685e1d177f125a8


[ROCm/clr commit: 679f49c904]
This commit is contained in:
Michael LIAO
2020-04-06 12:16:07 -04:00
parent bcb3769d7f
commit 04d62f3fb6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f,
int block_size = blockDimX * blockDimY * blockDimZ;
hip_impl::ihipOccupancyMaxActiveBlocksPerMultiprocessor(
&num_blocks, &num_grids, device, f, block_size, sharedMemBytes, true);
if (((gridDimX * gridDimY * gridDimZ) / block_size) > num_grids) {
if (((gridDimX * gridDimY * gridDimZ) / block_size) > unsigned(num_grids)) {
return hipErrorCooperativeLaunchTooLarge;
}
}
+1 -1
View File
@@ -732,7 +732,7 @@ hipError_t ihipOccupancyMaxActiveBlocksPerMultiprocessor(
}
// Make sure the requested block size is smaller than max supported
if (blockSize > device.info().maxWorkGroupSize_) {
if (blockSize > int(device.info().maxWorkGroupSize_)) {
numBlocks = 0;
numGrids = 0;
return hipSuccess;