title: ROCm breadcrumbs:
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.
{:.no_toc}
video
and render
groups required to use it? Using sudo
as a temporary solution works.amdgpu-pro
driver is installed then uninstall it to avoid conflicts. TODOsudo apt install curl libnuma-dev wget gnupg2
curl -sSf https://repo.radeon.com/rocm/rocm.gpg.key | gpg --dearmor > /usr/share/keyrings/rocm.gpg
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
apt update
sudo apt install rocm-dkms
/opt/rocm
): sudo ln -s /opt/rocm-4.2.0 /opt/rocm
(example) (TODO Will this automatically point to the right thing?)echo 'export PATH=$PATH:/opt/rocm/bin:/opt/rocm/rocprofiler/bin:/opt/rocm/opencl/bin' | sudo tee -a /etc/profile.d/rocm.sh
sudo /opt/rocm/bin/rocminfo
(should show e.g. one agent for the CPU and one for the GPU)sudo /opt/rocm/opencl/bin/clinfo
rocm-smi
{% include footer.md %}