#include #include #include #include int main() { long long n = 10000000000; long long r = thrust::reduce( thrust::constant_iterator(0) , thrust::constant_iterator(n) ); std::cout << r << std::endl; assert(r == n); }