Код: Выделить всё
#include
#include
#include
int main() {
thrust::host_vector h_vec(5);
h_vec[0] = 1;
h_vec[1] = 2;
h_vec[2] = 3;
h_vec[3] = 4;
h_vec[4] = 5;
thrust::inclusive_scan(h_vec.begin(), h_vec.end(), h_vec.begin());
for(int i = 0; i < h_vec.size(); i++) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78784236/unable-to-include-thrust-scan-h-with-cuda-12-4-or-12-5[/url]
Мобильная версия