[ 原始碼: libcudacxx ]
套件:libcu++-dev(1.8.1-2)
NVIDIA C++ Standard Library
libcu++ provides a heterogeneous implementation of the C++ Standard Library that can be used in and between CPU and GPU code.
Using libcu++ is as simple as using the C++ Standard Library. All that is needed is adding 'cuda/std/' to the start of the Standard Library includes and 'cuda::' before any uses of 'std::':
* #include <cuda/std/atomic> * cuda::std::atomic<int> x;