Author Topic: AMD OpenCL / ROCm  (Read 12331 times)

Corvidae

  • Newbie
  • *
  • Posts: 25
  • Karma: +11/-0
    • View Profile
Re: AMD OpenCL / ROCm
« Reply #15 on: March 26, 2023, 01:53:58 pm »
To potentially save someone from sinking tons of time into this when it might be doomed to fail: if you are planning on using a Polaris GPU, ROCm will not work on POWER currently due to the lack of PCIE atomics. According to this issue, Vega+ might be fine without them. I double checked if the lack of PCIE atomics was still an issue in 2023, and I would sadly say so:
Code: [Select]
[   14.145631] amdgpu 0000:01:00.0: amdgpu: PCIE atomic ops is not supported
[   14.811332] kfd kfd: amdgpu: skipped device 1002:67c4, PCI rejects atomics 730<0

chatcannon

  • Newbie
  • *
  • Posts: 13
  • Karma: +3/-0
    • View Profile
Re: AMD OpenCL / ROCm
« Reply #16 on: March 27, 2023, 02:00:19 pm »
By accident, I found this:
https://quickbuild.io/~raptor-engineering-public/+archive/ubuntu/rocm-power

I had a look at the packages included in the PPA. It seems that they have build the rocminfo tool but not any of the functionality to get ROCm OpenCL actually working. (Maybe I'm wrong there - I didn't look inside the deb packages, only at the package names.) So I tried it out on Gentoo and rocminfo now builds and runs with no modifications using the existing ebuild file.

rocm-opencl-runtime and rocclr still have arch-specific code for assembly and SSE intrinsics but maybe it is small enough to fix the remainder...