On Wed, Apr 21, 2021 at 11:09:12AM +0200, Patrik Jakobsson wrote:
On Wed, Apr 21, 2021 at 10:47:43AM +0200, Stefan Dirsch wrote:
On Wed, Apr 21, 2021 at 10:38:32AM +0200, Patrik Jakobsson wrote:
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.
Hmm I just tried moving it to /usr/share/OpenCL/vendors but that didn't work. Not sure why. I'll have a look at the strace output.
Sure, you've tested on TW? libOpenCL doesn't search in /usr/share/OpenCL/vendors yet on Leap.
Yes, this is on TW.
I think I found the problem. The AOMP stack also compiles it's own libOpenCL which do not have your path fix. So it looks like the AOMP OpenCL support cannot live alongside other OpenCL implementations. Bummer.
All of this gets solved when AMD upstreams enough of their code to LLVM. The question is what to do in the meantime. OpenCL is not the main purpose of this package so perhaps I should just remove the OpenCL support altogether?
Either this or use update-alternatives. We already support libOpenCL of ocl-icd package and the one that comes with nvidia driver that way. Search for update-alternatives in ocl-idc specfile. Which priority to use for AMD? For NVIDIA we use 100. We could use the same for AMD. Probably nobody will have both drivers installed. libOpenCL of ocl-icd uses priority = 50. Hope this helps. CU, 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 ----------------------------------------------------------------