HIP
HIP copied to clipboard
Provide a minimal installation for building HIP applications
The size of an installation for compiling hip applications on a rocm platform is quite large.
sudo apt install rocm-hip-runtime-dev
du -sh /opt/rocm-5.0.0/
Result:
3.6G /opt/rocm-5.0.0/
Most of this (3.4G) is in /opt/rocm/llvm
which includes many non-essential clang based tools like clang-repl (114MB), clang-scan-deps(100MB), clang-check(90MB) and clang-tidy. I dont think these tools are specialized for HIP so users can just install them from the distributions repositories if they are want to.
Expected result: Something smaller: at most 500MB, for reference an installation of clang on ubuntu is around ~300MB
We are building official debian packages with llvm upstream, you might want to check that out in a few days/weeks :) https://salsa.debian.org/rocm-team/community/team-project#packaging-progress
https://github.com/ROCm-Developer-Tools/HIP/issues/2449
@Maetveis Can you please test with latest ROCm 6.0.2 (HIP 6.0.32831)? If resolved, please close ticket. Thanks!
This is still not resolved, actually it is worse now /opt/rocm-6.0.2/
is 4.1G with only the rocm-llvm
package installed.
The non essential clang tools are still there and they are still statically linked (which makes them huge).
@Maetveis Internal ticket has been created to resolve this issue. Thanks!