From 9b1faa7db076499b7eaf5b4bae57e14a9edf0fbf Mon Sep 17 00:00:00 2001 From: Joseph Greathouse Date: Thu, 28 May 2020 12:18:09 -0500 Subject: [PATCH] Fix a build error on signed/unsigned comparison Change-Id: Ic79eb4c3ec5c6fd36cea7c4810d990619f08b9e1 [ROCm/clr commit: 766e7085355e761705bb26ed472ea366b527cc57] --- projects/clr/hipamd/rocclr/hip_platform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/rocclr/hip_platform.cpp b/projects/clr/hipamd/rocclr/hip_platform.cpp index 070a1082d5..28a1d270f8 100755 --- a/projects/clr/hipamd/rocclr/hip_platform.cpp +++ b/projects/clr/hipamd/rocclr/hip_platform.cpp @@ -878,7 +878,7 @@ hipError_t ihipOccupancyMaxActiveBlocksPerMultiprocessor( } } else { - if (inputBlockSize > device.info().maxWorkGroupSize_ || + if (inputBlockSize > int(device.info().maxWorkGroupSize_) || inputBlockSize == 0) { // The user wrote the kernel to work with a workgroup size // bigger than this hardware can support. Or they do not care