From fbe57306b9e671ff8090231f208a8d2f3dd42df0 Mon Sep 17 00:00:00 2001 From: Dimple Prajapati Date: Mon, 8 Dec 2025 16:19:48 -0800 Subject: [PATCH] Add IBGDA backend flag to enable bitcode generation (#347) * Change to enable ibgda bitcode compilation * Apply suggestion from @abouteiller --------- Co-authored-by: Aurelien Bouteiller --- src/rocshmem_gpu.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rocshmem_gpu.cpp b/src/rocshmem_gpu.cpp index 24462c5531..1fe0a58614 100644 --- a/src/rocshmem_gpu.cpp +++ b/src/rocshmem_gpu.cpp @@ -52,6 +52,9 @@ #include "util.hpp" #if defined(USE_GDA) +#if defined (ENABLE_IBGDA_BITCODE) +# include "gda/backend_gda.hpp" +#endif #include "gda/context_gda_tmpl_device.hpp" #endif #if defined(USE_RO) @@ -78,6 +81,8 @@ __constant__ rocshmem_ctx_t ROCSHMEM_CTX_INVALID = {nullptr, nullptr}; #if defined(ENABLE_IPC_BITCODE) typedef IPCContext ContextTy; +#elif defined(ENABLE_IBGDA_BITCODE) + typedef GDAContext ContextTy; #else typedef Context ContextTy; #endif