How to Install ROCm for AMD GPUs
Warning
You cannot have ROCm and AMDGPU-Pro driver installed at the same time, if you already have AMDGPU-Pro installed, run the command:
-
Add apt repo:
-
bash sudo apt update && sudo apt install rocm-dkms
-
To access the GPU, you must be a user in the video group. Ensure your user account is a member of the video group prior to using ROCm. To add your user to the video group, use the following command for the sudo password:
-
By default, add any future users to the video group. Run the following command to add users to the video group:
-
Restart the system
-
After restarting the system, run the following commands to verify that the ROCm installation is successful. If you see your GPUs listed by both commands, the installation is considered successful.
-
To run the ROCm programs more efficiently, add the ROCm binaries in your
PATH
. -
To remove ROCm: