From abbb594f7cf9bae1aaeadf7035880190ec97eaa3 Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Fri, 28 Feb 2020 22:54:00 +0200 Subject: [PATCH] Annotate `__constant__` [ROCm/hip commit: 27480ff5a24db54b61c8a52aed1ad7ae87429af1] --- projects/hip/include/hip/hcc_detail/host_defines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hcc_detail/host_defines.h b/projects/hip/include/hip/hcc_detail/host_defines.h index 11bd577f08..b21946e99f 100644 --- a/projects/hip/include/hip/hcc_detail/host_defines.h +++ b/projects/hip/include/hip/hcc_detail/host_defines.h @@ -60,7 +60,7 @@ THE SOFTWARE. */ // _restrict is supported by the compiler #define __shared__ tile_static -#define __constant__ __attribute__((hc)) +#define __constant__ __attribute__((hc, annotate("__HIP_constant__"))) #elif defined(__clang__) && defined(__HIP__)