[Openmp-commits] [openmp] [Libomptarget] Only initialize a plugin if a device image needs it (PR #76174)
Joseph Huber via Openmp-commits
openmp-commits at lists.llvm.org
Thu Dec 21 13:03:38 PST 2023
================
@@ -56,6 +56,8 @@
#include "hsa/hsa_ext_amd.h"
#endif
+extern const uint16_t llvm::omp::target::plugin::ELFMachine = ELF::EM_AMDGPU;
----------------
jhuber6 wrote:
`extern const` has different semantics, it means that it gets a symbol.
https://github.com/llvm/llvm-project/pull/76174
More information about the Openmp-commits
mailing list