Home / High-Performance Computing (HPC)
AMD ROCm (Radeon Open Compute), for programming AMD GPUs. AMD’s alternative to NVIDIA’s CUDA toolkit. It uses the runtime API and kernel language HIP, which is compilable for both AMD and NVIDIA GPUs.
Updated for ROCm 5.0.
amdgpu-pro
driver is installed then uninstall it to avoid conflicts.sudo apt install curl libnuma-dev wget gnupg2
curl -sSf https://repo.radeon.com/rocm/rocm.gpg.key | sudo gpg --dearmor --output /usr/share/keyrings/rocm.gpg
echo 'deb [signed-by=/usr/share/keyrings/rocm.gpg arch=amd64] https://repo.radeon.com/amdgpu/latest/ubuntu focal main' | sudo tee /etc/apt/sources.list.d/amdgpu.list
echo 'deb [signed-by=/usr/share/keyrings/rocm.gpg arch=amd64] https://repo.radeon.com/rocm/apt/debian/ ubuntu main' | sudo tee /etc/apt/sources.list.d/rocm.list
sudo apt update
sudo apt install mesa-common-dev clang comgr
sudo apt install amdgpu-dkms
sudo apt install <meta-packages>
rocm-language-runtime rocm-developer-tools rocm-llvm
rocm-hip-runtime rocm-hip-libraries rocm-hip-sdk
rocm-opencl-runtime rocm-opencl-sdk
rocm-openmp-sdk
rocm-ml-sdk rocm-ml-libraries
python
, which in Ubuntu installs python-is-python2
.echo 'export PATH=$PATH:/opt/rocm/bin:/opt/rocm/opencl/bin' | sudo tee /etc/profile.d/rocm.sh
(relog to reload)sudo usermod -aG video,render <username>
sudo dkms status
rocminfo
rocm-smi
rocminfo
rocminfo | grep gfx
(the shortest one)