LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware64 15.0 ROCm OpenCL build scripts (https://www.linuxquestions.org/questions/slackware-14/slackware64-15-0-rocm-opencl-build-scripts-4175734519/)

kingbeowulf 03-03-2024 08:21 PM

Slackware64 15.0 ROCm OpenCL build scripts
 
I took a few cracks at getting some ROCm OpenCL support ready for Slackbuilds.org some time ago.

https://www.linuxquestions.org/quest...ng-4175672690/

Unfortunately, some health issues forced a delay in working on this. The need for a useful AMD GPU OpenCL on top of the opensource AMDGPU driver continued to be evident in a number of posts on the interwebs. Sure, you can try to get AMDGPU-PRO to install, try deb2tgz, but a proper Slackware package set is needed.

Fortunately, another Slackware user was able to sort ROCm into a useful set of Slackware buildscripts:
https://github.com/414n/slackbuilds.org/blob/rocm-5.5.1
https://github.com/414n/slackbuilds....README_rocm.md

For those of us that need just OpenCL runtime and not the entire ROCm development and SDK stack, and where Mesa's OpenCL 1.1 won't work, I've sorted out the minimum set for OpenCL on Slackware64:

https://www.linuxgalaxy.org/kingbeow...r-slackware64/

For the brave, the full set of packages will provide OpenCL 2 and HIP/HSA runtimes, and a full set of development libraries and headers.

CaceK 03-06-2024 09:13 AM

I would love to try building the whole stack but version 5.5.1 is almost one year old.
Have anyone try building the 5.7 version?

There is stable PyTorch (2.2.1) for Rocm 5.7. I would love to try Stable Diffusion.

kingbeowulf 03-06-2024 11:27 PM

And Slackware 15.0 is now 2 years old. I haven't tried bumping up the version yet in these scripts to 5.7.1 (last of the 5 series), and whether 15.0 is "new enough". ROCm 6.x requires Slackware-Current. It's not easy to extract useful build information from the ROCm documentation. They still seem openly hostile to anyone not using one of the "official" distros that do the so-called "automatic" dependency resolution.

If I have time, I'll see what I can come up with to help 414n update his builds.


All times are GMT -5. The time now is 10:03 AM.