Replies: 2 comments
-
This is because the functional objects like |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the reply. I understand. Cristian |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
This is more a C++ question.
I took this code from the book Data Parallel C++ (2nd ed.)
I compiled with OneApi and it seemed to have worked (compilation and running on CPU and Nvidia).
When I compile it with AdaptiveCpp (v0.9.4 installed via spack on nvidia machine) I get this error:
If I change
plus<>()
toplus<int>()
both OneApi and AdaptiveCpp compile and work.I understand the basic idea of templates, but I am not good at C++ and I would like to understand what happens.
Cristian
Beta Was this translation helpful? Give feedback.
All reactions