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

Use HEMI_LAMBDAs as return values of host functions? #24

Open
crusaderky opened this issue Mar 19, 2016 · 1 comment
Open

Use HEMI_LAMBDAs as return values of host functions? #24

crusaderky opened this issue Mar 19, 2016 · 1 comment
Labels

Comments

@crusaderky
Copy link

Hi,
I'm trying to have host-side C++11 methods return HEMI_LAMBDA functions; would appreciate your opinion if it is even possible: http://stackoverflow.com/questions/36095952/use-lambdas-to-get-polymorphism-recursion-and-true-oo-style-in-cuda?noredirect=1#comment59847779_36095952

@harrism
Copy link
Owner

harrism commented Mar 20, 2016

I don't see why not, however, you may have trouble using decltype on them. See the restrictions in the programming guide: http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#lambda-expressions

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