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 gnupg2curl -sSf https://repo.radeon.com/rocm/rocm.gpg.key | sudo gpg --dearmor --output /usr/share/keyrings/rocm.gpgecho '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.listecho '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.listsudo apt updatesudo apt install mesa-common-dev clang comgrsudo apt install amdgpu-dkmssudo apt install <meta-packages>
rocm-language-runtime rocm-developer-tools rocm-llvmrocm-hip-runtime rocm-hip-libraries rocm-hip-sdkrocm-opencl-runtime rocm-opencl-sdkrocm-openmp-sdkrocm-ml-sdk rocm-ml-librariespython, 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 statusrocminfo
rocm-smirocminforocminfo | grep gfx (the shortest one)