mirror of
https://github.com/CNugteren/CLBlast.git
synced 2024-08-26 23:07:00 +02:00
Relaxed the absolute error margin for floating-point value comparisons to 1e-4
This commit is contained in:
parent
226e834d0a
commit
44bdb60e83
|
@ -299,7 +299,7 @@ bool TestSimilarity(const T val1, const T val2) {
|
||||||
|
|
||||||
// Set the allowed error margin for floating-point comparisons
|
// Set the allowed error margin for floating-point comparisons
|
||||||
constexpr auto kErrorMarginRelative = T{0.025};
|
constexpr auto kErrorMarginRelative = T{0.025};
|
||||||
constexpr auto kErrorMarginAbsolute = T{1.0e-6};
|
constexpr auto kErrorMarginAbsolute = T{1.0e-4};
|
||||||
|
|
||||||
// Shortcut, handles infinities
|
// Shortcut, handles infinities
|
||||||
if (val1 == val2) {
|
if (val1 == val2) {
|
||||||
|
|
Loading…
Reference in a new issue