Skip to content

Commit 180176a

Browse files
committed
Fix rsqrt test in unops.cu in HIP
1 parent 823a8cf commit 180176a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unops.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ struct unops_float_tests {
8080

8181
// seems that rsqrt does not match bitwise on GPU
8282
b = rsqrt(a);
83-
ASSERT_APPROX_ALL(b[I], rsqrt(T(items[I])));
83+
ASSERT_APPROX_ALL(b[I], T(1.0 / sqrt(double(items[I]))))
8484
}
8585
}
8686
};

0 commit comments

Comments
 (0)