From de162fa300a88f8a22fae1ae8b88bd06ab1a94a5 Mon Sep 17 00:00:00 2001 From: Michael LIAO Date: Fri, 24 May 2019 10:22:42 -0400 Subject: [PATCH] [hip] Minor fix to silence compilation warnings. - Add parenthese to silence repeative compilation warnings across projects built against hip. [ROCm/hip commit: 498fe92734396730a66f3bfd4e6ad4aa5a2a4b27] --- projects/hip/include/hip/hcc_detail/device_functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hcc_detail/device_functions.h b/projects/hip/include/hip/hcc_detail/device_functions.h index 808ed216e4..d275bb1820 100644 --- a/projects/hip/include/hip/hcc_detail/device_functions.h +++ b/projects/hip/include/hip/hcc_detail/device_functions.h @@ -1007,7 +1007,7 @@ void __syncthreads() SIZE 15:11 Range: 1..32 */ -#define GETREG_IMMED(SZ,OFF,REG) (SZ << 11) | (OFF << 6) | REG +#define GETREG_IMMED(SZ,OFF,REG) (((SZ) << 11) | ((OFF) << 6) | (REG)) /* __smid returns the wave's assigned Compute Unit and Shader Engine.