top | item 24526427

(no title)

lars | 5 years ago

It really is a tiny subset of the C++ standard library, but I'm happy to see they're continuing to expand it: https://nvidia.github.io/libcudacxx/api.html

discuss

order

shaklee3|5 years ago

Nvidia has had many members on the c++ standards committee for a while.

blelbach|5 years ago

I'm not sure how making a large contribution to the C++ Standard is a problem?

roel_v|5 years ago

Yeah, really tiny... At first I thought 'wow this is a game changer', but then I looked at your link and thought 'what's the point?'. Can someone explain what real problems you can solve with just the headers in the link above?

jpz|5 years ago

I guess that the point is that when writing CUDA code (which looks like C++), you can use these libraries which are homogenous with CPU code.

Looking at the functions, chrono/barrier etc require CPU level abstractions, so using the STL versions (which are for the CPU) aren't going to work really.

happyweasel|5 years ago

It runs on the GPU?

TillE|5 years ago

I would have expected the <algorithm> header, but instead...synchronization primitives? std::chrono? I'm completely baffled about how that would be useful, but that's probably because I know very little about CUDA.

blelbach|5 years ago

Today, you can use the library with NVCC, and the subset is small. We'll be focusing on expanding that subset over time.

Our end goal is to enable the full C++ Standard Library. The current feature set is just a pit stop on the way there.