opencl-for-python (original) (raw)

Project description

This is yet another set of Python bindings for OpenCL.

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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

File details

Details for the file opencl-for-python-0.5.2.tar.gz.

File metadata

File hashes

Hashes for opencl-for-python-0.5.2.tar.gz | Algorithm | Hash digest | | | ----------- | ---------------------------------------------------------------- | | | SHA256 | 2882299749e074e8e79071aa4445df8d17fe666fac81337f1891061835ee6592 | | | MD5 | b6b8d786ab13d4a1566c000dd4d2370f | | | BLAKE2b-256 | b78fc04c187a85b74db46e0155fc8a62207412b4f784a877629abdcf83b0b6ab | |

See more details on using hashes here.