rocSHMEM device API changes for bitcode support (#211)

ROCSHMEM_CTX_DEFAULT's visibility needs to be explicitly set to expose that as external device global variable in device bitcode.

[ROCm/rocshmem commit: c952ffb40e]
This commit is contained in:
Dimple Prajapati
2025-08-11 12:23:41 -07:00
committed by GitHub
parent 1d7206d0d7
commit 7436abeaa9
2 changed files with 2 additions and 2 deletions
@@ -115,7 +115,7 @@ typedef struct {
/**
* Shmem default context.
*/
extern __constant__ rocshmem_ctx_t ROCSHMEM_CTX_DEFAULT;
extern "C" __device__ rocshmem_ctx_t __attribute__((visibility("default"))) ROCSHMEM_CTX_DEFAULT;
/**
* Used internally to set default context.
+1 -1
View File
@@ -63,7 +63,7 @@
namespace rocshmem {
__device__ __constant__ rocshmem_ctx_t ROCSHMEM_CTX_DEFAULT{};
__device__ rocshmem_ctx_t __attribute__((visibility("default"))) ROCSHMEM_CTX_DEFAULT{};
__constant__ Backend *device_backend_proxy;