OpenCL Runtime: Basics

Version Queries


Gives the numeric version of PyOpenCL as a variable-length tuple of integers. Enables easy version checks such as VERSION >= (0, 93).


A text string such as “rc4” or “beta” qualifying the status of the release.


The full release name (such as “0.93rc4”) in string form.


Return a variable-length tuple of integers representing the version of the OpenCL header against which PyOpenCL was compiled.

New in version 0.92.

Error Reporting

class pyopencl.Error

Base class for all PyOpenCL exceptions.

class pyopencl.MemoryError
class pyopencl.LogicError
class pyopencl.RuntimeError