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

ClArray.name to bind an array to a kernel parameter with exact spelling #40

Open
tugrul512bit opened this issue May 29, 2017 · 1 comment
Assignees

Comments

@tugrul512bit
Copy link
Owner

this way, binding only necessary arrays to a kernel will be possible, instead of all arrays

@tugrul512bit
Copy link
Owner Author

__kernel void test(__global float * parameter1, __constant int * parameter2){}
__kernel void test2(__global float * parameter1){}

ClArray a=new float[1024];
a.name="parameter1";
ClArray b=new float[1024];
b.name="parameter2";
a.nextParam(b).compute(...," test test2 ",...);

then test2 will be able to use only parameter1 instead of both

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

1 participant