Just a few demos I found useful to create while learning PyOpenCL
sineOfTheTimes1d.py- operating on a flattened array, using onlyarray_to_deviceto handle the buffers and mem copysineOfTheTimes.py- useImagememory object and more manually manage memory. Plus this cool output:
requires the following modules:
numpypyopenclopencv-pythonfor display purposes