diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-10-28 04:01:01 +0000 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-10-28 04:01:01 +0000 |
commit | 0b4b0f11e889674effe698d792caea7d00ba067b (patch) | |
tree | db5a1e69214be4954bb0a46eefb6542bdd319630 /unsupported | |
parent | 306daa24a3fb4031cf20a58f2f9f26625698e8a4 (diff) |
Fixed a few more compilation warnings
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/test/cxx11_tensor_cuda.cu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/test/cxx11_tensor_cuda.cu b/unsupported/test/cxx11_tensor_cuda.cu index bf216587a..0ba9d52e9 100644 --- a/unsupported/test/cxx11_tensor_cuda.cu +++ b/unsupported/test/cxx11_tensor_cuda.cu @@ -303,8 +303,8 @@ void test_cuda_contraction() cudaMemcpy(t_result.data(), d_t_result, t_result_bytes, cudaMemcpyDeviceToHost); - for (size_t i = 0; i < t_result.dimensions().TotalSize(); i++) { - if (fabs(t_result.data()[i] - m_result.data()[i]) >= 1e-4) { + for (DenseIndex i = 0; i < t_result.size(); i++) { + if (fabs(t_result.data()[i] - m_result.data()[i]) >= 1e-4f) { std::cout << "mismatch detected at index " << i << ": " << t_result.data()[i] << " vs " << m_result.data()[i] << std::endl; assert(false); } |