[llvm] [offload][omp] Move reading _kernel_environment to libomptarget (PR #222606)

Alex Duran via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 05:52:43 PDT 2026


================
@@ -461,6 +466,67 @@ static int loadImagesOntoDevice(DeviceTy &Device) {
           if (Device.RTL->get_function(Binary, Entry.SymbolName,
                                        &DeviceEntry.Address) != OFFLOAD_SUCCESS)
             REPORT() << "Failed to load kernel " << Entry.SymbolName;
+
+          // Read this kernel's launch-geometry properties once, from its
+          // "<name>_kernel_environment" device global, and cache them on
+          // the device for use at launch time.
+          std::string EnvName =
----------------
adurang wrote:

Sure, let me rework that.

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


More information about the llvm-commits mailing list