File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 5454#ifdef USE_RO
5555#include " reverse_offload/context_ro_tmpl_device.hpp"
5656#else
57+ #ifdef ENABLE_IPC_BITCODE
58+ #include " ipc/backend_ipc.hpp"
59+ #endif
5760#include " ipc/context_ipc_tmpl_device.hpp"
5861#endif
5962
@@ -67,6 +70,12 @@ __device__ rocshmem_ctx_t __attribute__((visibility("default"))) ROCSHMEM_CTX_D
6770
6871__constant__ Backend *device_backend_proxy;
6972
73+ #ifdef ENABLE_IPC_BITCODE
74+ typedef IPCContext ContextTy;
75+ #else
76+ typedef Context ContextTy;
77+ #endif
78+
7079__device__ void rocshmem_wg_init () {
7180 int provided;
7281
@@ -294,8 +303,8 @@ __host__ void set_internal_ctx(rocshmem_ctx_t *ctx) {
294303 hipMemcpyHostToDevice));
295304}
296305
297- __device__ Context *get_internal_ctx (rocshmem_ctx_t ctx) {
298- return reinterpret_cast <Context *>(ctx.ctx_opaque );
306+ __device__ ContextTy *get_internal_ctx (rocshmem_ctx_t ctx) {
307+ return reinterpret_cast <ContextTy *>(ctx.ctx_opaque );
299308}
300309
301310__device__ int rocshmem_wg_ctx_create (long options, rocshmem_ctx_t *ctx) {
You can’t perform that action at this time.
0 commit comments