Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#54710 - [python-pyopencl] Is not imported

Attached to Project: Community Packages
Opened by Simon (Giggi) - Wednesday, 05 July 2017, 20:08 GMT
Last edited by Jelle van der Waa (jelly) - Monday, 28 August 2017, 18:10 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

If I try to import pyopencl it returns this error:

import pyopencl as cl

---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-72-f1779268ba42> in <module>()
----> 1 import pyopencl as cl

/usr/lib/python3.6/site-packages/pyopencl/__init__.py in <module>()
32
33 try:
---> 34 import pyopencl.cffi_cl as _cl
35 except ImportError:
36 import os

/usr/lib/python3.6/site-packages/pyopencl/cffi_cl.py in <module>()
38 from pytools import memoize_method
39
---> 40 from pyopencl._cffi import ffi as _ffi
41 from .compyte.array import f_contiguous_strides, c_contiguous_strides
42

ImportError: /usr/lib/python3.6/site-packages/pyopencl/_cffi.abi3.so: symbol clSetKernelArgSVMPointer, version OPENCL_2.0 not defined in file libOpenCL.so.1 with link time reference


I've the same problem on two different installation!

This task depends upon

Closed by  Jelle van der Waa (jelly)
Monday, 28 August 2017, 18:10 GMT
Reason for closing:  Fixed
Additional comments about closing:  Moved to OpenCL 1.2
Comment by Jelle van der Waa (jelly) - Thursday, 06 July 2017, 16:48 GMT
Last release seems to fix it!
Comment by Simon (Giggi) - Thursday, 06 July 2017, 17:47 GMT
It doesn't fix.
The problem is persisting ...

pacman -Q | grep opencl
opencl-headers 2:2.2.20170516-1
opencl-nvidia 381.22-1
pyopencl-headers 1:2017.2-1
python-pyopencl 1:2017.2-1
python2-pyopencl 1:2017.2-1
Comment by Jelle van der Waa (jelly) - Thursday, 06 July 2017, 18:59 GMT
Please paste the output of

pacman -Qo /usr/lib/python3.6/site-packages/pyopencl/_cffi.abi3.so

Although this might be an nvidia specific issue, I'll have to find some time to boot my nvidia blob machine.
Comment by Simon (Giggi) - Thursday, 06 July 2017, 19:48 GMT
~> pacman -Qo /usr/lib/python3.6/site-packages/pyopencl/_cffi.abi3.so
/usr/lib/python3.6/site-packages/pyopencl/_cffi.abi3.so รจ contenuto in python-pyopencl 1:2017.2-1

Comment by Simon (Giggi) - Saturday, 08 July 2017, 20:01 GMT
It's not clear.
But it's seems that my card (GeForce GTX 560 OEM) does not support OpenCL 2
And the other PC mount a Quadro K2000.

(Observe that opencl 2 in the nvidia driver is experimental)
http://us.download.nvidia.com/Windows/382.33/382.33-win10-win8-win7-desktop-release-notes.pdf


Comment by Simon (Giggi) - Tuesday, 11 July 2017, 16:16 GMT
Nb.
I've tested opencl with a C demo, and it works fine.
So the problem is related with pyopencl (and nvidia).
Comment by Simon (Giggi) - Tuesday, 11 July 2017, 18:24 GMT
Nb.
I've tested opencl with a C demo, and it works fine.
So the problem is related with pyopencl (and nvidia).
Comment by Simon (Giggi) - Saturday, 15 July 2017, 19:09 GMT
I've fixed by using the option "--cl-pretend-version=1.2" in the PKGBUILD, and I've recompiled.

...
python3 ./configure.py --cl-enable-gl --python-exe=python3 --cl-pretend-version=1.2
...

Comment by Ian Liu (ianliu) - Friday, 04 August 2017, 18:15 GMT
I can confirm that Simon's modification works with my NVIDIA GPU, but I'm afraid this solution is too specific. If one has an OpenCL 2.0 capable device, she should get that, in my opinion. Don't know the best approach here.
Comment by Jelle van der Waa (jelly) - Monday, 28 August 2017, 18:07 GMT
OpenCL 1.2 is now officially supported by nvidia so, this package will support it as well.

Loading...