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

Adding call() function with variadic templates #320

Open
adamcavendish opened this issue Nov 30, 2014 · 1 comment
Open

Adding call() function with variadic templates #320

adamcavendish opened this issue Nov 30, 2014 · 1 comment
Labels

Comments

@adamcavendish
Copy link

adamcavendish commented Nov 30, 2014

For C++11 users, maybe we can setup helper call() functions with variadic templates instead of set_arg() stuffs?

For example:
Kernel.hpp
Kernel.tcc

@kylelutz
Copy link
Collaborator

kylelutz commented Dec 1, 2014

Something like that would be interesting to have. Currently there is the variadic kernel::set_args() function which can be used to set all of the arguments for a kernel with a single function call like:

kernel.set_args(input.size(), input.data(), output.size(), output.data());

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

No branches or pull requests

2 participants