We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 441a98f commit ed6b727Copy full SHA for ed6b727
testing/unittest/cuda/testframework.cu
@@ -2,6 +2,7 @@
2
#include <unittest/cuda/testframework.h>
3
#include <thrust/system/cuda/memory.h>
4
#include <cuda_runtime.h>
5
+#include <numeric>
6
7
__global__ void dummy_kernel() {}
8
@@ -80,9 +81,7 @@ std::vector<int> CUDATestDriver::target_devices(const ArgumentMap &kwargs)
80
81
cudaGetDeviceCount(&count);
82
83
result.resize(count);
- // XXX iota is not available in c++03
84
- for(int i = 0; i < count; ++i)
85
- result[i] = i;
+ std::iota(result.begin(), result.end(), 0);
86
}
87
else
88
{
0 commit comments