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

[FEA]: Consider adding a static_assert to cuda::std::is_invocable that fails where its used in host code on an extended lambda #1984

Open
1 task done
Tracked by #1004
pciolkosz opened this issue Jul 12, 2024 · 0 comments
Labels
feature request New feature or request.

Comments

@pciolkosz
Copy link
Contributor

Is this a duplicate?

Area

libcu++

Is your feature request related to a problem? Please describe.

Similar to how cuda::std::invoke_result has a static_assert warning about accessing extended lambda return type from host where its not available, it would make sense to add such assert to cuda::std::is_invocable. Right now it just always returns true, no matter what argument types are passed into it

Describe the solution you'd like

It would be nice if is_invocable would fail to compile when used in host code on an extended lambda

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request.
Projects
Status: Todo
Development

No branches or pull requests

1 participant