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 Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:07 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Santiago Torres (sangy)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
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 ./configure.py --python-exe=python3 --cl-pretend-version=1.2 # --boost-python-libname=boost_python3
make
}


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

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:07 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/python-pyopencl/issues /1
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...