-
Notifications
You must be signed in to change notification settings - Fork 239
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
pyopencl cache doesn't care about #incude #18
Comments
It tries to detect changed include files: https://github.com/inducer/pyopencl/blob/master/pyopencl/cache.py#L146 It's apparently failing to do so in your case. Can you shove some print statements into this code to figure out what's going wrong? |
I understand the reason! I collect my cl files in |
It also does try to see It already understands |
Implement get_async Closes #18 See merge request inducer/pyopencl!91
I share some code between opencl files. Because of OpenCL 1.1 format easiest way is inclusion common cl code into both of cl files like this:
common.cl
kernel.cl:
If I modify
test
incommon.cl
pyopencl doesn't see it and use cached version ofcommon.cl
. Even if I deletetest
fromcommon.cl
pyopencl doesn't see it. It's quite dangerous because for example I spent a lot of time trying to find an error that was in this cache issue.The text was updated successfully, but these errors were encountered: