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

Wrong constant generation. #35

Open
fossil opened this issue May 22, 2016 · 0 comments
Open

Wrong constant generation. #35

fossil opened this issue May 22, 2016 · 0 comments

Comments

@fossil
Copy link

fossil commented May 22, 2016

const int mms = m-s;

in the kernel code, which is perfectly legal, lead to generation of

public static final int mms = m - s;

in the Java kernel class, which is obviously wrong, because m and s are not constants in the Java sense.

__kernel void fQeqQpQWYT(
__global double *q,
const int s,
const int m,
__global double *w,
__global double *y,
__local double *qwi) {
const int mms = m-s;
...
}

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

1 participant