Re:An Even Easier Introduction to CUDA
by verandaguy on Saturday February 04, 2017 @12:57AM
(#13565852)
I think there's a small error in the first code sample -- where the comment says:
... The call to `add` isn't a call to a function that'd be thrown onto the GPU. The `add` function is very much CPU-only based on the definition in that code sample (at least, not at that point!)
[ Parent
| on HN ]
Re:An Even Easier Introduction to CUDA
by ChristianGeek on Saturday February 04, 2017 @01:50AM
(#13565980)
The first sample is meant to use the CPU.
Re:An Even Easier Introduction to CUDA
by verandaguy on Saturday February 04, 2017 @02:06AM
(#13566021)
Yes. My point is that the comment treats `add` like it's GPU code.