You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the build of HIP 6.2.1 I'm hitting a build failure at hip_rtc_gen:
[ 53%] Generating hip_rtc_gen/hipRTC
cd /tmp/harmen/spack-stage/spack-stage-hip-6.2.1-5azljx7kvjexa34ldvielqnyb6ai2i5p/spack-build-5azljx7/hipamd/src/hiprtc && /home/harmen/spack/opt/spack/linux-ubuntu24.04-zen2/gcc-13.2.0/llvm-14.0.6-llq3p4xh7vwydihmxfuutsbymgtthwf4/bin/clang-14 -O3 --rocm-path=/tmp/harmen/spack-stage/spack-stage-hip-6.2.1-5azljx7kvjexa34ldvielqnyb6ai2i5p/spack-src/clr/hipamd/include/.. -std=c++17 -nogpulib --hip-version=6.2 -isystem /tmp/harmen/spack-stage/spack-stage-hip-6.2.1-5azljx7kvjexa34ldvielqnyb6ai2i5p/spack-src/include -isystem /tmp/harmen/spack-stage/spack-stage-hip-6.2.1-5azljx7kvjexa34ldvielqnyb6ai2i5p/spack-src/clr/hipamd/include -isystem /tmp/harmen/spack-stage/spack-stage-hip-6.2.1-5azljx7kvjexa34ldvielqnyb6ai2i5p/spack-build-5azljx7/hipamd/include -isystem /tmp/harmen/spack-stage/spack-stage-hip-6.2.1-5azljx7kvjexa34ldvielqnyb6ai2i5p/spack-src/clr/hipamd/src/hiprtc/include --cuda-device-only -D__HIPCC_RTC__ -DHIP_VERSION_MAJOR=6 -DHIP_VERSION_MINOR=2 -x hip /tmp/harmen/spack-stage/spack-stage-hip-6.2.1-5azljx7kvjexa34ldvielqnyb6ai2i5p/spack-build-5azljx7/hipamd/src/hiprtc/hip_rtc_gen/hipRTC_header.h -E -P -o /tmp/harmen/spack-stage/spack-stage-hip-6.2.1-5azljx7kvjexa34ldvielqnyb6ai2i5p/spack-build-5azljx7/hipamd/src/hiprtc/hip_rtc_gen/hipRTC
In file included from /tmp/harmen/spack-stage/spack-stage-hip-6.2.1-5azljx7kvjexa34ldvielqnyb6ai2i5p/spack-build-5azljx7/hipamd/src/hiprtc/hip_rtc_gen/hipRTC_header.h:5:
/tmp/harmen/spack-stage/spack-stage-hip-6.2.1-5azljx7kvjexa34ldvielqnyb6ai2i5p/spack-src/include/hip/hip_runtime.h:41:2: error: HIP is not supported on the specified GPU ARCH with wavefront size 64
#error HIP is not supported on the specified GPU ARCH with wavefront size 64
^
1 error generated when compiling for gfx803.
The error is
#error HIP is not supported on the specified GPU ARCH with wavefront size 64
I tried to reproduce the issue on my end but am unable to reproduce the issue. I was able to find a similar issue in spack here: spack/spack#42417 related to building HIP 6.0.0 that was fixed with this PR: spack/spack#42481. This leads me to believe that it is an issue with the spack installer, perhaps with the wrong version of llvm being pulled in?
Could you please try pulling the latest version of the spack repo and try again. If that doesn't work, could you please try building HIP from source as described here and let me know if you run into any issues? Thanks!
Hm, confusing. I guess it's supposed to find clang from the llvm-amdgpu package (which is a direct dependency), and not from llvm the dependency of mesa. Will have a look tomorrow.
Problem Description
During the build of HIP 6.2.1 I'm hitting a build failure at
hip_rtc_gen
:The error is
The full build log is attached: spack-build-out.txt
Operating System
Ubuntu 24.04
CPU
AMD Ryzen 7 3700X 8-Core Processor
GPU
AMD Radeon RX 6600 / gfx1032
ROCm Version
ROCm 6.2.1
ROCm Component
clr
Steps to Reproduce
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
Additional Information
No response
The text was updated successfully, but these errors were encountered: