[BUG] `hipcc` compile failure in Base image
Hi I am using 7900XTX local machine deployment.
Once I finished building images, I find hipcc failed to compile with hipcc.
This image is using ghcr.io/amdresearch/auplc-base:latest.
May be it due to TheRock calling issue with hipcc.
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.
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
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.