From 8a45f03573b69122c356f548f460c5a074442354 Mon Sep 17 00:00:00 2001 From: "Sun, Peng" Date: Tue, 27 Jun 2017 14:15:16 -0500 Subject: [PATCH] Remove some warning debug info and add weak attribute back to GGL __global__ define Change-Id: I2021b107dda697b1262d44fa1506465e94a3916b [ROCm/clr commit: 3d2a729580e5c620674d512372ac75426058f2e7] --- projects/clr/hipamd/include/hip/hcc_detail/host_defines.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/projects/clr/hipamd/include/hip/hcc_detail/host_defines.h b/projects/clr/hipamd/include/hip/hcc_detail/host_defines.h index 212fd650a3..b2e7ac2617 100644 --- a/projects/clr/hipamd/include/hip/hcc_detail/host_defines.h +++ b/projects/clr/hipamd/include/hip/hcc_detail/host_defines.h @@ -41,13 +41,10 @@ THE SOFTWARE. #define __host__ __attribute__((cpu)) #define __device__ __attribute__((hc)) -//#warning "HOST DEFINE header included" #if GENERIC_GRID_LAUNCH == 0 -//#warning "original global define reached" #define __global__ __attribute__((hc_grid_launch)) __attribute__((used)) #else -//#warning "GGL global define reached" -#define __global__ __attribute__((annotate("hip__global__"), hc, used)) +#define __global__ __attribute__((annotate("hip__global__"), hc, used, weak)) #endif //GENERIC_GRID_LAUNCH #define __noinline__ __attribute__((noinline))