pyopencl
pyopencl copied to clipboard
feat: make match_dtype_to_c_struct compatible with only offline compiler available
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 it can be supported.
I'm not sure how that could be done. The features relies on being able to evaluate the offsets of various struct members, and the only way I know to do that is by compiling code.