aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-10-05 10:39:24 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-10-05 10:39:24 -0700
commitaad20d700dd12ea69323b7e8777c204ad8399e08 (patch)
tree36a6ee03328be29c51c2509ad502165555a1a7ed /unsupported
parent8b69d5d730cbcff74eb682fecb3e3650e10c4fac (diff)
Increase the tolerance to numerical noise.
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/test/cxx11_tensor_of_float16_cuda.cu4
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/test/cxx11_tensor_of_float16_cuda.cu b/unsupported/test/cxx11_tensor_of_float16_cuda.cu
index cbf401c86..b70c46722 100644
--- a/unsupported/test/cxx11_tensor_of_float16_cuda.cu
+++ b/unsupported/test/cxx11_tensor_of_float16_cuda.cu
@@ -165,8 +165,8 @@ void test_cuda_elementwise() {
gpu_device.synchronize();
for (int i = 0; i < num_elem; ++i) {
- std::cout << "Checking elemwise " << i << std::endl;
- VERIFY_IS_APPROX(full_prec(i), half_prec(i));
+ std::cout << "Checking elemwise " << i << ": full prec = " << full_prec(i) << " vs half prec = " << half_prec(i) << std::endl;
+ VERIFY_IS_APPROX(static_cast<Eigen::half>(full_prec(i)), static_cast<Eigen::half>(half_prec(i)));
}
gpu_device.deallocate(d_float1);