2 ms·
I'm pretty sure they didn't add C++ kernel support at least until CUDA 5, and it had beaten OpenCL at that point.
by monocasa 7y ago
I'm pretty sure they didn't add C++ kernel support at least until CUDA 5, and it had beaten OpenCL at that point.
- llukas 7y agoYou're incorrect. C++ support was limited but GPU-useful things like templates were from early versions. You can check for yourself here (ie. check for texture fetch functions signatures) https://arcb.csc.ncsu.edu/~mueller/cluster/nvidia/2.0/Programming_Guide_2.0beta2.pdf https://arcb.csc.ncsu.edu/~mueller/cluster/nvidia/2.0/Progra...
- monocasa 7y agoI mean, they didn't support classes for a long time. That's not C++.
- pjmlp 7y agoC++ is anything that is part of ISO C++, including subsets thereof. When did C started supporting templates?
- monocasa 7y agoI'm sorry, but a language that doesn't support the class keyword isn't C++. They just ported templates to C. And that's what their docs say too.
- pjmlp 7y agoYeah the docs of CUDA 1.0 released in 2007. C++ class was added in 2010 as answered in another thread, in CUDA 3.0. I thought you were pretty sure about CUDA 5.0.
- pjmlp 7y agoYou are mixing up C++ support, which naturally like with other languages did not support 100% of ISO C++, and the reboot of NVidia's hardware design to match ISO C++11 memory semantics. Which is easily proven when reading the documentation for the first set of CUDA releases. As for the rebooted hardware design, https://youtu.be/86seb-iZCnI https://youtu.be/86seb-iZCnI https://cppcast.com/olivier-giroux/ https://cppcast.com/olivier-giroux/
- monocasa 7y ago...no, I'm not. CUDA kernels didn't even support classes for the longest time.
- pjmlp 7y agoSo the longest time, would be around 2009 with CUDA 2.1. https://developer.nvidia.com/cuda-toolkit-21-january-2009 https://developer.nvidia.com/cuda-toolkit-21-january-2009 > C++ templates are now supported in CUDA kernels Or maybe 2010 with CUDA 3.0, to make up for your C++ classes. https://developer.nvidia.com/cuda-toolkit-30-downloads https://developer.nvidia.com/cuda-toolkit-30-downloads > C++ Class Inheritance and Template Inheritance support for increased programmer productivity Let me check the date, I think we are in 2020, so if my math doesn't betray me, it looks like about 10 years to me. From where I am standing, I am pretty sure you never used CUDA.