yxsamliu wrote: I think we could use this approach for Linux. amdgpu-arch can still use HIP runtime to detect GPU for both Linux and Windows, so we still have a fallback even if we remove the HSA approach. https://github.com/llvm/llvm-project/pull/116651