-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building with ROCm/HIP fails on a system without GPU #969
Comments
@lahwaacz thank you for the bug report, we will look into this. The UCC CI checker runs through exactly the same scenario (i.e. compiling UCC with the ROCm stack installed but without an AMD GPU being available). However, because of an issue that we faced with clang-tidy newer than clang-12, we fixed the ROCm version in the UCC CI to ROCm 5.7.1 - which still uses For now, I think your best options are either to compile on a platform with an AMD GPU present, or change the |
@edgargabriel Thanks, I've patched it for the Arch Linux package: https://gitlab.archlinux.org/archlinux/packaging/packages/openucc/-/commit/f5618b46d08fa2c41f218366871d17133145cde9#9b9baac1eb9b72790eef5540a1685306fc43fd6c_50_42 |
Hi @edgargabriel ! We also encountered the same issue ( It would be nice that we can provide the list of architectures that we want to compile for at the configuration step. For now, there are many Note that we circumvented the problem by patching |
@romintomasetti thank you, it is on our list, we definitely plan to have it fixed for the next release. I think the fix is not entirely trivial since cuda_lt.sh is used by both cuda and rocm component, so it might require a deeper rework of that part of the code section. |
Also, please note that there is already the option Lines 109 to 118 in 1522ccf
|
The
cuda_lt.sh
script contains a--offload-arch=native
flag for amdclang:ucc/cuda_lt.sh
Line 31 in c1734db
This should select the native architecture of the GPU present in the build system. However, if the build system does not have any GPU, the command fails:
The text was updated successfully, but these errors were encountered: