diff options
| author | Joseph Huber <huberjn@outlook.com> | 2025-04-23 08:16:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-23 08:16:39 -0500 |
| commit | 92bba68634ec48c738d45bc86b05b1390aa82f4b (patch) | |
| tree | 6017b877db5bbe1c04aa6b26f5beaeda97648675 /offload/DeviceRTL/src/Kernel.cpp | |
| parent | 5b0cd17c386ecd126c7f0ab514413bab8222b421 (diff) | |
[Offload] Fix handling of 'bare' mode when environment missing (#136794)
Summary:
We treated the missing kernel environment as a unique mode, but it was
kind of this random bool that was doing the same thing and it explicitly
expects the kernel environment to be zero. It broke after the previous
change since it used to default to SPMD and didn't handle zero in any of
the other cases despite being used. This fixes that and queries for it
without needing to consume an error.
Diffstat (limited to 'offload/DeviceRTL/src/Kernel.cpp')
| -rw-r--r-- | offload/DeviceRTL/src/Kernel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/offload/DeviceRTL/src/Kernel.cpp b/offload/DeviceRTL/src/Kernel.cpp index eac68a15538c..467e44a65276 100644 --- a/offload/DeviceRTL/src/Kernel.cpp +++ b/offload/DeviceRTL/src/Kernel.cpp @@ -26,6 +26,7 @@ using namespace ompx; // These flags are copied from "llvm/Frontend/OpenMP/OMPDeviceConstants.h" and // must be kept in-sync. enum OMPTgtExecModeFlags : unsigned char { + OMP_TGT_EXEC_MODE_BARE = 0, OMP_TGT_EXEC_MODE_GENERIC = 1 << 0, OMP_TGT_EXEC_MODE_SPMD = 1 << 1, OMP_TGT_EXEC_MODE_GENERIC_SPMD = |
