From 9884f2e83f241cbe45646006ffa264bda06609a0 Mon Sep 17 00:00:00 2001 From: "Sun, Peng" Date: Fri, 7 Apr 2017 16:29:25 -0500 Subject: [PATCH] Update the define of __global__ for GGL Change-Id: I563bb2a132403bcbe9e9f279b55406cf0255af7d --- hipamd/include/hip/hcc_detail/host_defines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/include/hip/hcc_detail/host_defines.h b/hipamd/include/hip/hcc_detail/host_defines.h index b0a7421d18..5864cfa0e7 100644 --- a/hipamd/include/hip/hcc_detail/host_defines.h +++ b/hipamd/include/hip/hcc_detail/host_defines.h @@ -48,7 +48,7 @@ THE SOFTWARE. #define __global__ __attribute__((hc_grid_launch)) __attribute__((used)) #else //#warning "GGL global define reached" -#define __global__ [[hc]] __attribute__((weak)) +#define __global__ __attribute__((hc, weak)) #endif //GENERIC_GRID_LAUNCH #define __noinline__ __attribute__((noinline))