PyOpenCL and PyCUDA compatibility

Bug #1312422 reported by larson.eric.d@gmail.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pycuda (Ubuntu)
New
Undecided
Unassigned

Bug Description

python-pycuda and python-pyopencl cannot be installed simultaneously in Ubuntu 14.04 because they create conflicts in apt (using Synaptic to try to install).

python-pycuda:
  Installed: 2013.1.1+git20140310-1ubuntu1
  Candidate: 2013.1.1+git20140310-1ubuntu1
  Version table:
 *** 2013.1.1+git20140310-1ubuntu1 0
        500 http://ubuntu.eecs.wsu.edu/ trusty/multiverse amd64 Packages
        500 http://archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages
        100 /var/lib/dpkg/status

python-pyopencl:
  Installed: 2013.2-1build1
  Candidate: 2013.2-1build1
  Version table:
 *** 2013.2-1build1 0
        500 http://ubuntu.eecs.wsu.edu/ trusty/multiverse amd64 Packages
        500 http://archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
larson.eric.d@gmail.com (larsoner) wrote :

I meant python-pycuda and python-pyopencl. Both are often used by people working on computational problems, so it would be good to have them installable simultaneously. Also, I am running the NVIDIA drivers, if that matters.

description: updated
Revision history for this message
Graham Inggs (ginggs) wrote :

I am able to install python-pycuda and python-pyopencl together.
What error message do you see?

Revision history for this message
larson.eric.d@gmail.com (larsoner) wrote :

After removing everything related to CUDA and OpenCL (everything with those names in Synaptic), I do `sudo apt-get install python-pycuda python-pyopencl` and get:

The following packages have unmet dependencies:
 python-pyopencl : Depends: libopencl-1.1-1
                   Depends: libopencl-1.2-1
                   Depends: ocl-icd-libopencl1 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

If I only do `sudo apt-get install python-pycuda`, it installs. But then for `sudo apt-get install python-pyopencl` I get:

The following packages have unmet dependencies:
 python-pyopencl : Depends: libopencl-1.1-1
                   Depends: libopencl-1.2-1
                   Depends: ocl-icd-libopencl1 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

If I then uninstall everything related to OpenCL and CUDA (by searching for these names in Synaptic) again, and do `sudo apt-get install python-pyopencl`, it succeeds. If I then do `sudo apt-get install python-pycuda` I get:

The following packages have unmet dependencies:
 python-pycuda : Depends: nvidia-cuda-toolkit but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Let me know if there are other commands I should run to help diagnose why the package says its broken.

Revision history for this message
Graham Inggs (ginggs) wrote :

I think this may be related to LP: #1247736. Please try the following steps (after removing everything CUDA and OpenCL related):

sudo apt-get install nvidia-cuda-toolkit
sudo apt-get install python-pycuda
sudo apt-get install ocl-icd-opencl-dev (this will remove nvidia-libopencl1-* and nvidia-opencl-dev)
sudo apt-get install python-pyopencl

Revision history for this message
larson.eric.d@gmail.com (larsoner) wrote :

That did indeed work, so this appears to be a duplicate bug. Thanks for the help!

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.