SWDEV-271416 - Remove HIP_DYNAMIC_SHARED macro in hip

Change-Id: I12f39ea8438eb7ce76d8ffb2151b4faa93689048
This commit is contained in:
Julia Jiang committed 2021-02-08 13:17:46 -05:00
1 parent 1338ebde58
commit e4fdbfcf5b
12 files changed
+23 -57

No files matched your search

+1 -6
View File
@@ -49,12 +49,7 @@ template <typename T>
__global__ void testExternSharedKernel(const T* A_d, const T* B_d, T* C_d,
size_t numElements, size_t groupElements) {
// declare dynamic shared memory
#if defined(__HIP_PLATFORM_AMD__)
HIP_DYNAMIC_SHARED(T, sdata)
#else
HIP_DYNAMIC_SHARED(__align__(sizeof(T)) unsigned char, my_sdata)
T* sdata = reinterpret_cast<T*>(my_sdata);
#endif
extern __shared__ double sdata[];
size_t gid = (blockIdx.x * blockDim.x + threadIdx.x);
size_t tid = threadIdx.x;