We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rsqrt
unops.cu
1 parent 823a8cf commit 180176aCopy full SHA for 180176a
1 file changed
tests/unops.cu
@@ -80,7 +80,7 @@ struct unops_float_tests {
80
81
// seems that rsqrt does not match bitwise on GPU
82
b = rsqrt(a);
83
- ASSERT_APPROX_ALL(b[I], rsqrt(T(items[I])));
+ ASSERT_APPROX_ALL(b[I], T(1.0 / sqrt(double(items[I]))))
84
}
85
86
};
0 commit comments