MyOpenCL is a small Python wrapper for OpenCL based on ctypes. I wrote MyOpenCL primarily because I wanted a very minimal, low-level wrapper, but also because I wanted to verify whether ctypes is good enough for "real" wrappers. I think it is. There is not a lot of documentation other than the test suites.
If you want a fully-featured binding use PyOpenCL instead.
git clone https://github.com/bjourne/myopencl
cd myopencl
pip install -U . --break-system-packages
It installes mcl-tool
to be used for diagnostics:
$ mcl-tool list-platforms
...
$ mcl-tool build-kernel kernel/path.cl
$ PYTHONPATH=. pytest -vs tests
- There are some tricky attributes
cl.get_info
currently doesn't handle.