From 27480ff5a24db54b61c8a52aed1ad7ae87429af1 Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Fri, 28 Feb 2020 22:54:00 +0200 Subject: [PATCH] Annotate `__constant__` --- include/hip/hcc_detail/host_defines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hip/hcc_detail/host_defines.h b/include/hip/hcc_detail/host_defines.h index 11bd577f08..b21946e99f 100644 --- a/include/hip/hcc_detail/host_defines.h +++ b/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__)