aup-learning-cloud icon indicating copy to clipboard operation
aup-learning-cloud copied to clipboard

[BUG] `hipcc` compile failure in Base image

Open youyoulyz opened this issue 9 months ago • 3 comments

Hi I am using 7900XTX local machine deployment. Once I finished building images, I find hipcc failed to compile with hipcc.

Image

This image is using ghcr.io/amdresearch/auplc-base:latest.

May be it due to TheRock calling issue with hipcc.

Image

youyoulyz avatar Mar 04 '26 14:03 youyoulyz

Thanks for the report. After investigation, the root cause is that the base image now uses AMD's TheRock distribution (amdrocm apt packages), which is a runtime-only distribution and does not include HIP SDK development headers (hip/hip_runtime.h etc.). This applies to both the apt packages and the TheRock tarball — HIP development headers are intentionally not part of this distribution.

MioYuuIH avatar Mar 05 '26 03:03 MioYuuIH

Ok, it seems some problem with find header files.

Add lines like this can succeed.

hipcc -I/usr/local/lib/python3.12/dist-packages/_rocm_sdk_core/include test.hip -o test

Image

youyoulyz avatar Mar 05 '26 08:03 youyoulyz

This has been fixed. The HIP headers are actually bundled with the ROCm PyTorch wheel (_rocm_sdk_core package) — we now automatically symlink them into /opt/rocm/include/hip at image build time, so hipcc can find hip/hip_runtime.h without any extra flags. The fix will be included in the next CI build of auplc-base.

Thanks for the insight — your finding that adding -I/usr/local/lib/python3.12/dist-packages/_rocm_sdk_core/include works was the key clue that pointed us to the solution.

MioYuuIH avatar Mar 05 '26 08:03 MioYuuIH