Skip to content

Small Python wrapper for OpenCL based on ctypes

License

Notifications You must be signed in to change notification settings

bjourne/myopencl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myopencl

myopencl is a small Python wrapper for OpenCL based on ctypes.

myopencl is a low-level wrapper and only includes the features I need. If you want a fully-featured binding use PyOpenCL instead. Look at the test suites for usage. There is no other documentation.

Installation

git clone https://github.com/bjourne/myopencl
cd myopencl
pip install -U . --break-system-packages

You can use the installeed mcl-tool for diagnostics:

$ mcl-tool list-platforms
...
$ mcl-tool build-kernel kernel/path.cl

Unit tests

$ PYTHONPATH=. pytest -vs tests

Future work

  • Make cl.get_info also handle tricky attributes.

About

Small Python wrapper for OpenCL based on ctypes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published