0

I've spent a few days trying to get pyopencl to work with my 7900 XTX GPUs. I have drivers installed, rocm 5.5, and I can see the devices when I run clinfo but cl.get_platforms() still fails with PLATFORM_NOT_FOUND_KHR.

Would appreciate it if someone could point me in the right direction of how to debug this properly.

  • If clinfo runs properly and detects your GPU etc, then I think it's probably the installation of 'pyopencl'. I use opencl c not python so I'm sorry I don't know how you're supposed to install it but I think that's where you should start - look over how to properly install pyopencl on your OS. – Simon Goater Jun 03 '23 at 16:38
  • Thanks for trying to help. I've also installed nvtop which is written in C, but that says there's "no GPU to monitor". – William Gazeley Jun 03 '23 at 17:34
  • Have you found your kern.log file and inspected it for clues? – Simon Goater Jun 03 '23 at 19:20
  • According to this, there may be no current ROCm support for your hardware. https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/7638 Maybe you could contact AMD to confirm or otherwise. – Simon Goater Jun 03 '23 at 19:42
  • Seems there is as of ROCm 5.5 https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/9591 What should I be looking for in my kern.log? – William Gazeley Jun 04 '23 at 18:14
  • I don't know I'm the right person to guide you here but since no-one else is helping, I suggest looking for messages to do with PCIe atomics support as well as anything related to your GPU obviously. Are you using AMD 'recommended hardware' or have you just plugged the 7900s into your existing system? – Simon Goater Jun 04 '23 at 21:04
  • I just plugged them into my existing system, but I think it should still work. In terms of logs, I found th ings like: "amdgpu: Virtual CRAT table created for GPU" "AMD AuthenticAMD" "AMD-Vi: AMD IOMMUv2 functionality not available on this system - This is not a bug" I'm googling for what these things mean and what else I should be looking at Thanks for trying to help by the way. – William Gazeley Jun 06 '23 at 06:20

0 Answers0