[Openmp-commits] [openmp] [openmp] Disable affinity on WebAssembly Linux targets (PR #235840)
Hori Godai via Openmp-commits
openmp-commits at lists.llvm.org
Mon Oct 26 18:30:52 PDT 2026
steelydylan wrote:
@arsnyder16 @mjklemm could you take a look? Affinity support in `kmp_affinity.h` depends on the architecture (it needs per-arch syscall numbers), but the wasm exclusion in `kmp_os.h` is keyed on the OS (WASI, Emscripten). Any other OS in a wasm triple — clang already accepts `wasm32-unknown-linux-*` and defines `__linux__` there — falls through to `#error Unknown or unsupported architecture`. Keying the check on `KMP_ARCH_WASM32`/`KMP_ARCH_WASM64` matches the actual constraint and is NFC for WASI and Emscripten.
https://github.com/llvm/llvm-project/pull/235840
More information about the Openmp-commits
mailing list