Just a few demos I found useful to create while learning PyOpenCL
sineOfTheTimes1d.py
- operating on a flattened array, using onlyarray_to_device
to handle the buffers and mem copysineOfTheTimes.py
- useImage
memory object and more manually manage memory. Plus this cool output:
requires the following modules:
numpy
pyopencl
opencv-python
for display purposes