Add IBGDA backend flag to enable bitcode generation (#347)
* Change to enable ibgda bitcode compilation
* Apply suggestion from @abouteiller
---------
Co-authored-by: Aurelien Bouteiller <aurelien.bouteiller@amd.com>
[ROCm/rocshmem commit: fbe57306b9]
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4a0a3cc6e3
Коммит
b9c172de16
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user