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

[COMPAT] Launch template argument deduction is easy to get wrong #17832

Open
FMarno opened this issue Apr 3, 2025 · 0 comments
Open

[COMPAT] Launch template argument deduction is easy to get wrong #17832

FMarno opened this issue Apr 3, 2025 · 0 comments
Labels
enhancement New feature or request syclcompat Issues related to SYCLcompat

Comments

@FMarno
Copy link
Contributor

FMarno commented Apr 3, 2025

Is your feature request related to a problem? Please describe

When providing the function template parameter to syclcompat::launch, the template arguments are not deduced from the type of args. This can make it easy to get wrong, while also making the code more verbose. Here is an example issue: codeplaysoftware/cutlass-fork#276 (comment)

Describe the solution you would like

Find a way to deduce the template arguments for the F template parameter of syclcompat::launch and syclcompat::experimental::launch.

Describe alternatives you have considered

In the example above, @rolandschulz suggested converting the function to a functor struct with a templated operator(). Unfortunately, I can't see a way to create that class from function via template meta-programming.

Additional context

I believe the issue is that you can't pass an unspecialized function as a template parameter (could be wrong).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request syclcompat Issues related to SYCLcompat
Projects
None yet
Development

No branches or pull requests

2 participants