On Wed, Apr 21, 2021 at 10:09:51AM +0200, Patrik Jakobsson wrote:
On Tue, Apr 20, 2021 at 10:39:53PM +0200, Maximilian Trummer wrote:
(sending to the list as well...)
Hey, thanks for trying to package ROCm. I've tried running the AMD-provided ROCm package for SLES on Tumbleweed in the past, but the experience was frustrating.
As for your package, I'm not sure what the correct location of OpenCL loaders is. Mesa and pocl put theirs in "/usr/share/OpenCL/vendors", yours puts it in "/etc/OpenCL/vendors". The "clinfo" tool seems to only search in "/etc/OpenCL/vendors", so by default it doesn't even find Mesa's or pocl. clinfo also doesn't list AOMP which is in /etc/OpenCL/vendors already. I tested darktable and Blender, and they both couldn't find the AOMP OpenCL loader either...
Hi, thanks for having a look
Since the entire stack gets installed into /usr/lib/aomp_11.12-0 you need to add the library paths to /etc/ld.so.conf manually. E.g:
/usr/lib/aomp_11.12-0/lib /usr/lib/aomp_11.12-0/lib64
I know this is not a great solution but it's what I have atm. It might be worth moving just the OpenCL lib to normal lib paths. That would give OpenCL support out of the box but the rest of the libs still needs to be added manually.
The ICD can certainly be moved to /usr/share/OpenCL/vendors.
It's not such a big issue since /etc/OpenCL/vendors is checked first, then /usr/share/OpenCL/vendors. Thanks, Stefan Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE Software Solutions Germany GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany ---------------------------------------------------------------- (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer ----------------------------------------------------------------