Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation terminated, cannon open source file #90

Closed
RyanHope opened this issue Sep 1, 2015 · 3 comments
Closed

Compilation terminated, cannon open source file #90

RyanHope opened this issue Sep 1, 2015 · 3 comments

Comments

@RyanHope
Copy link

RyanHope commented Sep 1, 2015

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?

@inducer
Copy link
Owner

inducer commented Sep 1, 2015

-I in the build() options. Next time, please do not use this issue tracker to request assistance with support issues.

@inducer inducer closed this as completed Sep 1, 2015
@RyanHope
Copy link
Author

RyanHope commented Sep 1, 2015

The fact that it needs zero extra options on one system and not the other
seems like a bug.

On Mon, Aug 31, 2015 at 11:19 PM, Andreas Klöckner <notifications@github.com

wrote:

Closed #90 #90.


Reply to this email directly or view it on GitHub
#90 (comment).

Ryan Hope, M.S.
CogWorks Lab
Cognitive Science Department
Rensselaer Polytechnic Institute

@inducer
Copy link
Owner

inducer commented Sep 1, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants