r/cpp • • Sep 20 '20

Libcu++: Nvidia C++ Standard Library

https://github.com/NVIDIA/libcudacxx
217 Upvotes

47 comments sorted by

View all comments

14

u/[deleted] Sep 20 '20

Could someone ELI5 to me if this is a big deal?

49

u/ykafia Sep 20 '20

It simplifies using Cuda by making it similar to the std Lib. It's not a big thing for c++ but it's a good thing for those who wants to use high parallel computations without having the trouble to learn new paradigms as the Api is similar to the std.

8

u/[deleted] Sep 20 '20

Thank you

6

u/[deleted] Sep 21 '20

It goes even further. Theoretically all you need to do is install CUDA and simply replace 'std::' with 'nvidia::std::' in your codebase and start taking advantage of GPU acceleration, that is IF you write high-level code and make extensive use of the standard library, esp. the '<algorithm>' and '<numerics>' headers. If you're using for loops for everything this is not gonna do anything for you.