OpenCL version pinned to 1.2, no 2.0 features
Task Info (Flyspray) | |
---|---|
Opened By | Torsten Keßler (tpkessler) |
Task ID | 66930 |
Type | Feature Request |
Project | Community Packages |
Category | Packages |
Version | None |
OS | x86_64 |
Opened | 2020-06-07 15:43:13 UTC |
Status | Assigned |
Assignee | Santiago Torres (sangy) |
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