Pyopencl dependence on opencl-icd (and the lack of providing packages) makes it tricky to install

Bug #1264844 reported by Niall Murphy
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pyopencl (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Goal: install python-pyopencl on Ubuntu 13.10 using the AMD APP SDK 2.9 drivers
http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/
 for CPU emulation on a system with an Intel integrated video card not supported by Intel's drivers.

Steps:
Download and install AMD APP SDK 2.9
Install the ocl-icd-opencl-dev.
Reboot the machine then install python-pyopencl.

Result:
py-opencl works, but on on reboot I cannot log into Unity due to openGL issues with compiz.

Cause:
python-pyopencl depends on opencl-icd.
In my repositories this is only provided by various nvidia-319-updates packages and beignet.
The nvidia packages are selected by apt and install but conflict with, and remove ocl-icd-opencl-dev.
I do not have nvidia hardware.

Fix:
I can install beignet which provides opencl-icd and then install python-pyopencl and use it with ocl-icd-opencl-dev (ignoring beignet as a platform).

Suggestion:
I am unfamiliar with the technical details of icds but:
Should/could ocl-icd-opencl-dev also provide opencl-icd?
Should/could python-pyopencl depend on either ocl-icd-opencl-dev or opencl-icd?
Should apt detect that I dont have Nvidia hardware and install an AMD or Intel driver (beignet) instead?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pyopencl (Ubuntu):
status: New → Confirmed
Revision history for this message
Wieke Kanters (kantersw) wrote :

I've been having trouble with this as well. Managed to break both ubuntu on my desktop and laptop by accidentally installing the nvidia stuff (that'll teach me to gloss over apt-get "to be installed" lists). Managed to work around it by simply building pyopencl fram source, everything seems to work so far.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pyopencl - 2020.3.1-1

---------------
pyopencl (2020.3.1-1) unstable; urgency=medium

  * Team upload

  [ Samuel Thibault <email address hidden> ]
  * Add hurd-i386 architecture (Closes: #947864)

  [ Stuart Prescott ]
  * Update debian/watch to GitHub repo.

  [ Andreas Beckmann ]
  * fix building and cleaning the new release

  [ Picca Frédéric-Emmanuel ]
  * building doc requires a HOME, set it to /tmp
  * d/rules: Added build time tests
  * d/control: Added Build-Depends python3-pytest <!nocheck>
  * d/t/control: Added in order to test as installed on debci
  * Use secure URI in Homepage field.
  * d/control: Added python3-mako to python3-pyopencl, this missing
    package what spotted by autopkgtests.

 -- Picca Frédéric-Emmanuel <email address hidden> Sat, 19 Dec 2020 11:15:19 +0100

Changed in pyopencl (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.