Community Packages

Please read this before reporting a bug:

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!

FS#66930 - [python-pyopencl] OpenCL version pinned to 1.2, no 2.0 features

Attached to Project: Community Packages
Opened by Torsten Ke├čler (tpkessler) - Sunday, 07 June 2020, 15:43 GMT
Last edited by freswa (frederik) - Sunday, 07 June 2020, 23:38 GMT
Task Type Feature Request
Category Packages
Status Assigned
Assigned To Santiago Torres (sangy)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


OpenCL 2.0 features as delivered by AMD through rocm-opencl-runtime (from the AUR) are not enabled in python-pyopencl.
This is due to forcing version 1.2 during the configuration:

build() {
cd "pyopencl"
git submodule init && git submodule update
python3 ./ --python-exe=python3 --cl-pretend-version=1.2 # --boost-python-libname=boost_python3

Additional info:
* package version 2020.1-1

Steps to reproduce:

$ python -c 'import pyopencl as cl;print(cl.get_cl_header_version())'

prints (1,2) regardless of the installed OpenCL runtime / headers. For me:

$ clinfo | grep Version
Platform Version OpenCL 2.0 AMD-APP.dbg (3137.0)
Device Version OpenCL 2.0
Driver Version 3137.0 (HSA1.1,LC)
Device OpenCL C Version OpenCL C 2.0
This task depends upon