[llvm] [Offload][OpenMP] Accept `omp_initial_device` for runtime calls (PR #205290)

Alex Duran via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 29 01:14:04 PDT 2026


Jan =?utf-8?q?André?= Reuter <j.reuter at fz-juelich.de>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/205290 at github.com>


adurang wrote:

> It feels wrong that we have to duplicate this logic at every call site, but I think that's what's necessary to fix the currently existing correctness issue. Maybe we can think about a better, less confusing mechanism in some future work

I don't think it would take much to have a single `bool isInitialDevice(int deviceNum)` helper defined and used across all those conditions. Seems like a much more future-proof change.

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


More information about the llvm-commits mailing list