[llvm] [offload][omp] Move reading _kernel_environment to libomptarget (PR #222606)
Robert Imschweiler via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 23 07:39:04 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:
but isn't that used here?
```c++
__tgt_target_table DeviceTable{&DeviceEntries[0],
&DeviceEntries[0] + DeviceEntries.size()};
TransTable->DeviceTables[DeviceId] = DeviceTable;
__tgt_target_table *TargetTable = TransTable->TargetsTable[DeviceId] =
&TransTable->DeviceTables[DeviceId];
```
https://github.com/llvm/llvm-project/pull/222606
More information about the llvm-commits
mailing list