diff --git a/testing/unittest/cuda/testframework.cu b/testing/unittest/cuda/testframework.cu index 8f2073157..a8bc52ea4 100644 --- a/testing/unittest/cuda/testframework.cu +++ b/testing/unittest/cuda/testframework.cu @@ -2,6 +2,7 @@ #include #include #include +#include __global__ void dummy_kernel() {} @@ -80,9 +81,7 @@ std::vector CUDATestDriver::target_devices(const ArgumentMap &kwargs) cudaGetDeviceCount(&count); result.resize(count); - // XXX iota is not available in c++03 - for(int i = 0; i < count; ++i) - result[i] = i; + std::iota(result.begin(), result.end(), 0); } else {