pyopencl
pyopencl copied to clipboard
OpenCL integration for Python, plus shiny features
For some devices, online compilers might not be available. For the code written in C/C++ invoking OpenCL library, they will choose to call `clCreateProgramWithBinary` instead of `clCreateProgramWithSource`, so that the...
MacOS 10.15.2, Python 3.7.5, PyOpenCL 2019.1.2 My machine has three available devices: - 0: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz - 1: Intel(R) UHD Graphics 630 - 2: AMD Radeon...
Currently the `add_event()` method in `cl.array` has a hard coded limit of 12 for the number of queued events. I think it would be better if this was a configurable...
At https://github.com/inducer/pyopencl/blob/d0d0addccd5d71a32a425d274663373909ff5254/pyopencl/tools.py#L593 , it calls the online compiler available to OpenCL. However, for certain devices, there's no online compiler available (e.g. Intel FPGA OpenCL SDK). So, would be great if...
Since python 3.6, we can add type information to python variables, functions, etc... Having such type information specified can avoid many mistakes early before they lead to runtime error. Since...
Hi, I noticed memory deallocation issues when compiling and running OpenCL kernels many times within a loop. Consider the following simple example code: ------------------ ``` import pyopencl as cl import...
It seems sometimes image is not correctly initialized on NVIDA GPU on windows. ``` import numpy as np import pyopencl as cl from pyopencl import cltypes platform = cl.get_platforms()[0] print(platform,...
Hi, I am facing an annoying bug when cleaning up the memory after the run (core-dump). The bug occurs only on PPC64le architecture (IBM power9) when running on the GPU...
How can I perform a reduction on an Image object? The module (https://documen.tician.de/pyopencl/algorithm.html?highlight=reduction#pyopencl.reduction.ReductionKernel) seems to only support arrays being passed to kernel function.
I was looking in the PyOpenCL source to see if I could find some example code of how to handle this correctly. However, as far as I can tell PyOpenCL...