From 150e3acdad44209c2c0a9ea734019f8d00f31b55 Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Tue, 16 Aug 2016 17:58:57 +0300 Subject: [PATCH] #define HIP_DYNAMIC_SHARED_ATTRIBUTE is added [ROCm/hip commit: 70156759838e8b4f3b94d3e0e6f9a4e8cc253b2e] --- projects/hip/include/hcc_detail/hip_runtime.h | 2 ++ projects/hip/include/nvcc_detail/hip_runtime.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/projects/hip/include/hcc_detail/hip_runtime.h b/projects/hip/include/hcc_detail/hip_runtime.h index c29995ba2a..9b17683f48 100644 --- a/projects/hip/include/hcc_detail/hip_runtime.h +++ b/projects/hip/include/hcc_detail/hip_runtime.h @@ -627,6 +627,8 @@ do {\ __attribute__((address_space(3))) type* var = \ (__attribute__((address_space(3))) type*)__get_dynamicgroupbaseptr(); \ +#define HIP_DYNAMIC_SHARED_ATTRIBUTE __attribute__((address_space(3))) + #endif // __HCC__ diff --git a/projects/hip/include/nvcc_detail/hip_runtime.h b/projects/hip/include/nvcc_detail/hip_runtime.h index 9e05974b92..569d6297bf 100644 --- a/projects/hip/include/nvcc_detail/hip_runtime.h +++ b/projects/hip/include/nvcc_detail/hip_runtime.h @@ -99,6 +99,8 @@ kernelName<<>>(0, ##__VA_ARGS__);\ #define HIP_DYNAMIC_SHARED(type, var) \ extern __shared__ type var[]; \ +#define HIP_DYNAMIC_SHARED_ATTRIBUTE + #endif