You are not logged in.

#1 2018-04-11 20:20:00

OmarSquircleArt
Member
From: Cairo, Egypt
Registered: 2017-07-01
Posts: 23
Website

[SOLVED] OpenCL ICD loader not working with Mesa on Arch.

OpenCl applications were working perfectly prior to a full system upgrade I did, where `opencl-mesa` package was updated to version `18.0.0`.

I have the following packages installed:

  • opencl-mesa

  • ocl-icd

  • opencl-headers

In `/etc/OpenCL/vendors` I have a `mesa.icd` file with the line `libMesaOpenCL.so.1.0` and in `/usr/lib` I have a `libMesaOpenCL.so.1.0.0` file.

Running `ls /etc/OpenCL/vendors` returns: `mesa.icd`

and I have a `/etc/ld.so.conf.d/00-usrlib.conf` file with the line `/usr/lib` as instructed by the documentation

Most applications fails with an error concerning clGetPlatformIDs. For instance, pyopencl:

>>> import pyopencl as cl
>>> cl.get_platforms()
pyopencl.cffi_cl.LogicError: clGetPlatformIDs failed: <unknown error -1001>

Everything seems to be in order and was working before, why is the loader failing?

Last edited by OmarSquircleArt (2018-04-16 16:42:17)

Offline

#2 2018-04-16 16:41:18

OmarSquircleArt
Member
From: Cairo, Egypt
Registered: 2017-07-01
Posts: 23
Website

Re: [SOLVED] OpenCL ICD loader not working with Mesa on Arch.

This issue was fixed when I upgraded to version `18.0.0-4` of opencl-mesa package.

Offline

Board footer

Powered by FluxBB