Skip to content

hipcc does not hipify __nvvm_get_smem_pointer function #1457

@terU3760

Description

@terU3760

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions