In many CUDA related project, we can see the line of code as the following:
extern "C" __device__ uint32_t __nvvm_get_smem_pointer(void *ptr);
It is used to convert the shared memory address into an 32 bit int address. But when I tried to use hipcc to build the project containing such line, it just doesn't hipify this line i.e. compile OK but link error:
lld: error: undefined hidden symbol: __nvvm_get_smem_pointer
So what is the equivalent on AMD gpu platform of the function __nvvm_get_smem_pointer in Nvidia CUDA library?