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

Robert Imschweiler via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 06:10:00 PDT 2026


================
@@ -459,8 +465,72 @@ static int loadImagesOntoDevice(DeviceTy &Device) {
               REPORT() << "Failed to write symbol for USM " << Entry.SymbolName;
         } else if (Entry.Address) {
           if (Device.RTL->get_function(Binary, Entry.SymbolName,
-                                       &DeviceEntry.Address) != OFFLOAD_SUCCESS)
+                                       &DeviceEntry.Address) !=
+              OFFLOAD_SUCCESS) {
             REPORT() << "Failed to load kernel " << Entry.SymbolName;
+            continue;
----------------
ro-i wrote:

is the continue messing with the indexing of the device table that is populated below (`DeviceEntries.emplace_back(DeviceEntry);`)?

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


More information about the llvm-commits mailing list