Since 2010-07-13 PyOpenCL is available in Debian. To install PyOpenCL you need to enable contrib and non-free sections in /etc/apt/sources.list:

deb unstable main contrib non-free
deb-src unstable main contrib non-free

(replace MIRROR with your country code).


Wheezy (Debian version 7.0) should become Debian stable in late 2012. It contains PyOpenCL packages for Python 2 (python-pyopencl) and for Python 3 (python3-pyopencl). Wheezy contains two OpenCL implementations:

and you should chose one depending on your graphical hardware. amd-libopencl1 allows for running OpenCL kernels on CPU, not only on GPU, so you can install it even if your GPU does not not support OpenCL.

There are three ICD loaders available in Wheezy:

The first one is free software (BSD licence) and I advise you to use it - it supports different OpenCL implementations and gives the least problems.


The only available OpenCL implementation in Debian Squeeze (6.0) is one provided with NVIDIA drivers, so PyOpenCL depends on nvidia-libopencl1, nvidia-opencl-common, and nvidia-opencl-icd. As those are non-free packages, python-pyopencl is placed in the

contrib section, intended for free packages depending on non-free ones.

CategoryPyOpenCl CategoryPyOpenCl

PyOpenCL/Installation/Linux/Debian (last edited 2013-01-02 01:08:42 by 108-222-68-224)