[Openmp-commits] [openmp] [offload] Add global addrspace qualifier to KLE and member pointers (PR #213918)

Robert Imschweiler via Openmp-commits openmp-commits at lists.llvm.org
Tue Aug 4 12:50:38 PDT 2026


================
@@ -123,7 +123,7 @@ void init(bool IsSPMD, KernelEnvironmentTy &KernelEnvironment,
 /// holds for all instances of the kernel. The latter is dynamic and provides
 /// per-launch information.
 KernelEnvironmentTy &getKernelEnvironment();
-KernelLaunchEnvironmentTy &getKernelLaunchEnvironment();
+Global<KernelLaunchEnvironmentTy> &getKernelLaunchEnvironment();
----------------
ro-i wrote:

they are unrelated. And for the other PR: pinned memory buys not a lot for upstream, but for ROCm.
For every KLE, we copy host -> device, but that has way more latency than pinned host -> device, at least for ROCm (maybe also because the host -> device path is more cluttered with OMPT and other stuff)

https://github.com/llvm/llvm-project/pull/213918


More information about the Openmp-commits mailing list