Ebuilds to install ROCm on Gentoo Linux
-> https://github.com/RadeonOpenCompute/ROCm
Please report all problems here first, if you tried ebuilds of this repository.
All ebuilds which are already exist in Gentoo portage will be removed from this repository.
If you have a problem with an ebuild from Gentoo portage then submit a bugreport at https://bugs.gentoo.org/.
The ebuilds for ROCm 3.8.0 are in a good state.
Ebuilds for ROCm 3.9.0 are WIP...
Thanks to all contributors.
The following tables show all ebuilds tested (2020-11-15) in this repository.
All other ebuilds can be out of date!
Kernel, driver, libraries, compiler and tools:
Ebuild | Current Version | State | FHS | in Gentoo portage |
---|---|---|---|---|
sys-kernel/rocm-sources | 3.9.0 | based on linux kernel 5.6.0 | (ok) | |
dev-util/rocm-cmake | 3.9.0 | Yes | ✔️ 3.8.0, 3.9.0 |
|
dev-libs/roct-thunk-interface | 3.9.0 | Yes | ✔️ 3.7.0, 3.8.0, 3.9.0 |
|
sys-devel/llvm-roc | 3.9.0 | Yes | ✔️ 3.7.0, 3.8.0, 3.9.0 |
|
dev-libs/rocm-device-libs | 3.9.0 | Yes | ✔️ 3.7.0, 3.8.0, 3.9.0 |
|
media-libs/hsa-amd-aqlprofile | 3.9.0 | (ok) | ||
dev-libs/rocr-runtime | 3.9.0 | Yes | ✔️ 3.8.0, 3.9.0 |
|
dev-util/rocminfo | 3.9.0 | Yes | ✔️ 3.7.0, 3.8.0 |
|
dev-util/rocm-bandwidth-test | 3.9.0 | Reports suitable informations. | (ok) | |
dev-libs/rocm-smi-lib | 3.9.0 | (ok) | ||
dev-util/rocm-smi | 3.9.0 | Reports suitable informations. | (ok) | |
dev-libs/rocm-comgr | 3.9.0 | Yes | ✔️ 3.9.0 |
|
dev-libs/amd-dbgapi | 3.9.0 | (ok) | ||
dev-libs/rocclr | 3.9.0 | Yes | ✔️ 3.9.0 |
|
dev-libs/rocm-opencl-runtime | 3.9.0 | Yes | ✔️ 3.8.0, 3.9.0 |
|
dev-util/rocm-clang-ocl | 3.9.0 | (ok) | ||
sys-devel/hip | 3.9.0 | (ok) | ||
dev-libs/rocm-debug-agent | 3.9.0 | formerly dev-libs/rocr-debug-agent | (ok) | |
dev-util/roctracer | 3.9.0 | (ok) | ||
dev-util/rocprofiler | 3.9.0 | (ok) | ||
dev-util/rcp | 5.6 | (ok) | ||
dev-libs/RCCL | 3.8.0 | (ok) | ||
dev-util/Tensile | 3.9.0 | (ok) |
ROCm Libraries:
Ebuild | Current Version | State | FHS | in Gentoo portage |
---|---|---|---|---|
sci-libs/rocPRIM | 3.8.0 | (ok) | ||
sci-libs/rocRAND | 3.8.0 | (ok) | ||
sci-libs/rocFFT | 3.8.0 | (ok) | ||
sci-libs/rocSPARSE | 3.8.0 | (ok) | ||
sci-libs/rocBLAS | 3.8.0 | (ok) | ||
sci-libs/rocSOLVER | 3.8.0 | (ok) | ||
sci-libs/rocALUTION | 3.8.0 | (ok) | ||
sci-libs/rocThrust | 3.8.0 | (ok) | ||
sci-libs/hipCUB | 3.8.0 | (ok) | ||
sci-libs/hipBLAS | 3.8.0 | (ok) | ||
sci-libs/hipSPARSE | 3.8.0 | (ok) | ||
sci-libs/MIOpenGEMM | 3.8.0 | (ok) | ||
sci-libs/MIOpen | 3.8.0 | (ok) |
Meta ebuilds:
Ebuild | Current Version | State | FHS | in Gentoo portage |
---|---|---|---|---|
dev-util/amd-rocm-meta | 3.8.0 | (ok) |
Systems known to work:
No | CPU | PCIe | GPU | additional information |
---|---|---|---|---|
1 | Intel Core i5 8400 | PCIe 3.0 | Radeon RX 560 (POLARIS11) | |
2 | Intel Core i7 6700k | PCIe 3.0 over Thunderbolt 3 | Radeon VII | |
3 | AMD Ryzen 1700 | PCIe 3.0 | Radeon RX 580 |
=== For tensorflow-rocm ===
emerge miopen rocFFT rocRAND rocBLAS rccl rocm-smi rocminfo
=== AMDGPU wiki page ===
https://wiki.gentoo.org/wiki/AMDGPU#SME https://wiki.gentoo.org/wiki/AMDGPU#Kernel
=== udev rule for ROCm ===
This is so ROCm utilities and libraries can function correctly.
echo 'SUBSYSTEM=="kfd", KERNEL=="kfd", TAG+="uaccess", GROUP="video"' | sudo tee /etc/udev/rules.d/70-kfd.rules
You probably also want to add a video group if you don't already have one and add yourself to it.
Add a video group:
emerge acct-group/video
Add your user account to the group:
sudo usermod -a -G video $LOGNAME
=== ROCm debugging tools ===
In no particular order some helpful utilities for testing ROCm are:
Note: clinfo might not work with a noexec /tmp
rocminfo && rocm-smi && hipconfig && clinfo && MIOpenDriver pool