Add support of extern __shared__ for hip-clang

[ROCm/hip commit: cc14ed0981]
此提交包含在:
Yaxun (Sam) Liu committed 2018-06-08 11:17:25 -04:00
1 父節點 b54be20b05
當前提交 2f017c1200
1 file changed
+8
+8
查看文件
@@ -657,6 +657,14 @@ __DEVICE__ void inline __assert_fail(const char * __assertion,
}
extern "C" __device__ __attribute__((noduplicate)) void __syncthreads();
extern "C" __device__ void *__amdgcn_get_dynamicgroupbaseptr();
// Macro to replace extern __shared__ declarations
// to local variable definitions
#define HIP_DYNAMIC_SHARED(type, var) \
type* var = (type*)__amdgcn_get_dynamicgroupbaseptr();
#define HIP_DYNAMIC_SHARED_ATTRIBUTE
#pragma push_macro("__DEVICE__")