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 ftp://ftp.MIRROR.debian.org/debian/ unstable main contrib non-free
deb-src ftp://ftp.MIRROR.debian.org/debian/ unstable main contrib non-free

(replace MIRROR with your country code).

Wheezy

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:

  • AMD/ATI amd-opencl-icd
  • NVIDIA nvidia-opencl-icd 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:

  • ocl-icd-libopencl1
  • amd-libopencl1
  • nvidia-libopencl1 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.

Squeeze

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