[llvm] [runtimes] Add explicit offload arch tool dependencies (PR #206076)

Robert Imschweiler via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 29 01:39:16 PDT 2026


ro-i wrote:

@shiltian I think the issue with making amdgpu-/nvptx-arch a build dependency of the unittests is that we would remove, for example, the `PLATFORM_HAS_AMDGPU` gating from the `amdgpu_arch = native` here:

https://github.com/llvm/llvm-project/blob/2d2a9815933dfa422c2858786f5ad76d1802c25c/offload/unittests/CMakeLists.txt#L74-L78

We would the *-arch tools make extra_test_deps in this if: https://github.com/llvm/llvm-project/blob/2d2a9815933dfa422c2858786f5ad76d1802c25c/llvm/runtimes/CMakeLists.txt#L832

However, if you would then run check-offload on a machine without both Nvidia and AMD GPUs, the corresponding tests wouldn't be skipped as "unsupported", but you would get a build failure during the device compile dependencies for the tests.

Maybe I'm missing something...
(born to assembly, forced to CMake 🙃 )

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


More information about the llvm-commits mailing list