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

try to use pyopencl -D to define preprocess definitions. #35

Open
john-hu opened this issue Apr 11, 2017 · 0 comments
Open

try to use pyopencl -D to define preprocess definitions. #35

john-hu opened this issue Apr 11, 2017 · 0 comments

Comments

@john-hu
Copy link
Member

john-hu commented Apr 11, 2017

kilik had found a way to define preprocessor definition at python, see #9 .

size = 100
clProg = cl.Program(ctx, fstr).build(options="-D GLOBAL_SIZE={0}".format(size))

Currently, we use code generation to put all preprocessor definitions. If possible, we should use build options to do so. I cannot make sure how long it can use or any limitation at that.

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