Skip to content

Instantly share code, notes, and snippets.

@lovely-error
Last active May 17, 2024 17:35
Show Gist options
  • Save lovely-error/3462c5d2e7e95b464dc5cf18b0afc7a0 to your computer and use it in GitHub Desktop.
Save lovely-error/3462c5d2e7e95b464dc5cf18b0afc7a0 to your computer and use it in GitHub Desktop.
Get OpenCL working on RX580 amdgpu using APT
  1. Create this file sudo touch /etc/apt/sources.list.d/rocm.list
  2. put this line in there deb [arch=amd64] https://repo.radeon.com/rocm/apt/3.5.1/ xenial main
  3. sudo apt update
  4. install ocl sudo apt install rocm-opencl3.5.0
  5. this script doesnt write icd path to /etc/OpenCL/vendors/ so that's on us
  6. touch /etc/OpenCL/vendors/amdocl64.icd
  7. echo "/opt/rocm-3.5.1/opencl/lib/libamdocl64.so" > /etc/OpenCL/vendors/amdocl64.icd
  8. done. run clinfo. thing should work at this point

if 3.5.1 doesn work for you, look at the rocm logs to see last version when it had worked for your gpu (it may have never been the case!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment