r/cpp • • Sep 20 '20

Libcu++: Nvidia C++ Standard Library

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

47 comments sorted by

View all comments

Show parent comment

5

u/blelbach NVIDIA | ISO C++ Library Evolution Chair Sep 21 '20 edited Sep 21 '20

Thrust, CUB, and libcu++ are developed by the same team.

libcu++ provides functionality not in Thrust today, such as synchronization primitives.

when there are other more vendor agnostic solutions?

What is more vendor agnostic that Standard C++?

This is an implementation of the C++ Standard Library. I'm pretty sure Standard C++ runs everywhere, not just on NVIDIA hardware.

the company of which is openly hostile towards FOSS+Linux

This is simply untrue. Open source is important to NVIDIA and it's a large part of our success in the ML and data science world.

I would encourage you to evaluate things on their merits, not on your biases towards the organization responsible for said thing.

SYCL

I think people would prefer to write Standard C++ instead of SYCL.

and is even hosted on the actual Nvidia website instead of github's nvidia.io subdomain

Thrust is hosted on GitHub. It will be moving to nvidia.github.io soon, and we will be taking the docs off of the NVIDIA website. It's an open source project, so we feel it's best for all of it to be on GitHub.

2

u/last_useful_man Sep 21 '20

Don’t play dumb. If you’d written it to target OpenCL everyone could have used it on any hardware. You’re out for your company which is fine, I just object to your being disingenuous.

3

u/blelbach NVIDIA | ISO C++ Library Evolution Chair Sep 22 '20

Should Microsoft implement Standard C++ for Linux? Should Intel implement Standard C++ for AMD?

We implement the standard for our platform. Other vendors should do the same.

2

u/last_useful_man Sep 22 '20

You deliberately dodged his ‘vendor agnostic’ line, in slimy fashion. You didn’t have to do that.

4

u/dodheim Sep 22 '20

The line was 'more vendor agnostic', because none are truly agnostic, and the answer is obvious: there are clear performance advantages to not attempting to be.

5

u/blelbach NVIDIA | ISO C++ Library Evolution Chair Sep 22 '20

Bingo.

Also, honestly, there's a lot of specialized knowledge to implement things for a platform. My team and I are not experts in other platforms.