pyopencl icon indicating copy to clipboard operation
pyopencl copied to clipboard

feat: make match_dtype_to_c_struct compatible with only offline compiler available

Open yxliang01 opened this issue 6 years ago • 1 comments

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.

yxliang01 avatar Nov 08 '19 17:11 yxliang01

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.

inducer avatar Nov 08 '19 22:11 inducer