HIP icon indicating copy to clipboard operation
HIP copied to clipboard

Provide a minimal installation for building HIP applications

Open Maetveis opened this issue 2 years ago • 5 comments

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

Maetveis avatar Feb 13 '22 13:02 Maetveis

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

Maxzor avatar Feb 16 '22 13:02 Maxzor

https://github.com/ROCm-Developer-Tools/HIP/issues/2449

Maxzor avatar Feb 16 '22 13:02 Maxzor

@Maetveis Can you please test with latest ROCm 6.0.2 (HIP 6.0.32831)? If resolved, please close ticket. Thanks!

ppanchad-amd avatar Apr 03 '24 17:04 ppanchad-amd

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 avatar Apr 05 '24 14:04 Maetveis

@Maetveis Internal ticket has been created to resolve this issue. Thanks!

ppanchad-amd avatar Apr 09 '24 15:04 ppanchad-amd