mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-13 00:21:49 +08:00
Increase the tolerance to numerical noise.
This commit is contained in:
parent
8b69d5d730
commit
aad20d700d
@ -165,8 +165,8 @@ void test_cuda_elementwise() {
|
|||||||
gpu_device.synchronize();
|
gpu_device.synchronize();
|
||||||
|
|
||||||
for (int i = 0; i < num_elem; ++i) {
|
for (int i = 0; i < num_elem; ++i) {
|
||||||
std::cout << "Checking elemwise " << i << std::endl;
|
std::cout << "Checking elemwise " << i << ": full prec = " << full_prec(i) << " vs half prec = " << half_prec(i) << std::endl;
|
||||||
VERIFY_IS_APPROX(full_prec(i), half_prec(i));
|
VERIFY_IS_APPROX(static_cast<Eigen::half>(full_prec(i)), static_cast<Eigen::half>(half_prec(i)));
|
||||||
}
|
}
|
||||||
|
|
||||||
gpu_device.deallocate(d_float1);
|
gpu_device.deallocate(d_float1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user