GitHub - srossross/oclpb: OpenCL Python Bindings (original) (raw)

Welcome to OpenCL for Python's documentation!

This is yet another set of Python bindings for OpenCL.

Warning

This project currently is in a beta release state.

Features:

Create a program and context

foo = program.foo
foo.argnames = 'a', 'b', 'c'
foo.argtypes = cl.global_memory(c_float, ndim=2), c_int, c_float

Equivalent to def foo(a, b=1, c=2.0):

foo.defaults = 1, 2.0
event = foo(queue, a)