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

evaluate if we can generate code and do type casting on the fly #9

Closed
john-hu opened this issue Nov 28, 2016 · 1 comment
Closed

evaluate if we can generate code and do type casting on the fly #9

john-hu opened this issue Nov 28, 2016 · 1 comment

Comments

@john-hu
Copy link
Member

john-hu commented Nov 28, 2016

According to the proposal 1 and 2, we should generate some PIs or codes on the fly. This part is doable. But we need to evaluate if we can cast __global variable into what we want....

This issue is just for evaluation, no need to commit any code.

@kilikkuo
Copy link
Contributor

It's also possible to deliver the "#define GLOBAL_SIZE 100" in the generated code by
...
size = 100
clProg = cl.Program(ctx, fstr).build(options="-D GLOBAL_SIZE={0}".format(size))
...

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

No branches or pull requests

2 participants