You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 2 kernels that both share a common helper function which I abstracted out into a helper file which then gets #included... This seems to work fine on my OSX system using the stock Apple OpenCL compiler/library but on a different Windows 10 both with the AMD OpenCL compiler/library I get a cannon open source file error. Basically, the compiler can't find the header. How do I tell pyopencl where to look for headers?
The text was updated successfully, but these errors were encountered:
Sorry, I understand now where you are coming from in terms of saying that this could conceivably be a bug in PyOpenCL. As a matter of fact though, what you're seeing is just down to implementation differences between different OpenCL drivers (ICDs). As such, there is unfortunately little that PyOpenCL can do. In your situation though, it should be safe to simply pass a -I option pointing to the directory where your header resides, and you should be fine across all OpenCL platforms.
I have 2 kernels that both share a common helper function which I abstracted out into a helper file which then gets #included... This seems to work fine on my OSX system using the stock Apple OpenCL compiler/library but on a different Windows 10 both with the AMD OpenCL compiler/library I get a cannon open source file error. Basically, the compiler can't find the header. How do I tell pyopencl where to look for headers?
The text was updated successfully, but these errors were encountered: