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.
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
$ PYTHONPATH=. pytest -vs tests
- Make
cl.get_info
also handle tricky attributes.