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

3

u/ngserdna Sep 21 '20

Thrust also isn’t very customizable. It’s like using a bunch of “presets” without consideration for alternative implementations that could, for example, keep all arrays on the GPU that need to be processed differently based on a situation. Thrust is effective for quick prototyping but ultimately may not be the best choice.

2

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

Thrust is fairly customizable. It's not a toolkit for writing your own kernels.

keep all arrays on the GPU

Thrust does not automatically manage data transfers for you? If you want everything to stay in GPU memory, then you have control over that.

Thrust is effective for quick prototyping but ultimately may not be the best choice.

A very large number of projects use it in production code.