AMD GPU driver with opencl support?

Basically title. I have a 7600(x)(t) 8G. I want drivers with opencl for hashcat. I know the proprietary ones work, but they are a ludicrously massive PITA. I am willing to use almost any distro to make this work (not Ubuntu, and not one of those random newer ones). I really hope I don't have to use the proprietary drivers.

Edit: found a good enough solution. I listed the card on ebay and will replace it with an intel arc soon.

24 points · 18 comments · view on lemmy.world

18 Comments

vikingtons@lemmy.world · 7 pts · 2y (12 replies)

I don't suppose Fedora 40 with ROCm 6.1 will cover this for you? Once you're set up, you can

sudo dnf install rocm*

...and that should include rocm-ocl rocm-opencl. I quickly tested this with davinci resolve a couple days back.

E: you may need to set an environment variable to spoof a ""supported device"" 🫠

kbal@fedia.io · 2 pts · 2y (1 reply)
[ removed ]
vikingtons@lemmy.world · 1 pts · 2y

Definitely worth a look!

HumanPerson@sh.itjust.works · 2 pts · 2y (9 replies)

Holy crap, really? I used it a while ago, and have been using it recently in the form of asahi. That would be seriously great if that works, and thank you so much for the suggestion.

vikingtons@lemmy.world · 3 pts · 2y (8 replies)

Very welcome! I originally neglected the notion that I tested this from a 'supported' ASIC, however.

I'm not sure how this will behave on NV33; you may need to employ the aforementioned env variable workaround for any luck, I'll try to find a link for it.

E1: I believe RX 6700XT (NV23) users set the following env var to spoof their device as NV21

HSA_OVERRIDE_GFX_VERSION=10.3.0

I'll see if there's one more suitable to your GPU.

E2: Try export the following

HSA_OVERRIDE_GFX_VERSION=11.0.0

HumanPerson@sh.itjust.works · 2 pts · 2y (7 replies)

I tried both suggestions, as well as running it without the variables changed. On all three of them, hashcat said "Device #3: Unstable OpenCL driver detected!" when I ran hashcat -I (device info if your not familiar with hashcat). I tried running the benchmark, and it crashed saying "Device #1: Kernel /usr/lib64/hashcat/OpenCL/shared.cl build failed."

Edit: I looked, and I don't see a package called rocm-ocl, nor can I install one. Edit2: Wait nvm, I see rocm-opencl, and I assume that's it.

vikingtons@lemmy.world · 1 pts · 2y (6 replies)

Ah man, are you able to verify OCL working with other applications such as OpenShot or Blender?

As for your edit, sorry you're correct, the package name is rocm-opencl, otherwise referred to as rocm-opencl-runtime

HumanPerson@sh.itjust.works · 1 pts · 2y (5 replies)

Well I tried an opencl benchmark I found, and my computer has fuckied a major wucky... Edit: reboot fixed it but it seems opencl is super unstable on here. I ran hashcat again, this time with --force, and found that it did nothing, then there were weird colors, then plasmashell crashed. Luckily plasmashell has good crash handling and it was able to go back up so I could see that hashcat reported something about gpu hang being the reason for the crash.

vikingtons@lemmy.world · 2 pts · 2y (4 replies)

Oh damn, can you send me a link to that? I'll also try Hashcat + its benchmark when I get the chance.

Reaching out to a friend who has some familiarity with HC in the mean time.

HumanPerson@sh.itjust.works · 3 pts · 2y

Https://github.com/projectphysx/opencl-benchmark

Kidplayer_666@lemm.ee · 3 pts · 2y (4 replies)

I think the FOSS drivers support it? https://mesamatrix.net/ Seems to say that it’s supported, ut I’m not sure

HumanPerson@sh.itjust.works · 2 pts · 2y (3 replies)

Mesa clover opencl has only 40% of the extensions implemented. I suspect hashcat needs some that it doesn't have, if I am understanding that correctly.

entropicdrift@lemmy.sdf.org · 4 pts · 2y (2 replies)

Try using rusticl for your OpenCL implementation. It runs OpenCL on top of Vulkan, which is very well supported by Radeon cards.

boo_@lemmy.blahaj.zone · 2 pts · 2y

I second rusticl, but I'd like to note that it uses Gallium internally, and not Vulkan. There is a vulkan-gallium translation layer called Zink, though, which can be used to run rusticl on any Vulkan-capable GPU AFAIK. Zink is initially made to run OpenGL on Vulkan, but it's also just a general-purpose Gallium driver.

NinjaCheetah@sh.itjust.works · 2 pts · 2y

Second this. rusticl worked perfectly for me when I needed to get OpenCL working with my 6600XT.

drwankingstein@lemmy.dbzer0.com · 2 pts · 2y

I reccomend just using rusticl if it's compatible, it's both performant and reliable