diff --git a/openmp/libomptarget/test/offloading/bug49334.cpp b/openmp/libomptarget/test/offloading/bug49334.cpp --- a/openmp/libomptarget/test/offloading/bug49334.cpp +++ b/openmp/libomptarget/test/offloading/bug49334.cpp @@ -5,7 +5,9 @@ // UNSUPPORTED: x86_64-pc-linux-gnu #include +#include #include +#include #include #include @@ -57,7 +59,8 @@ int currj = j * rowsPerBlock + jj; float m_value = matrix[curri + currj * nCols]; float bm_value = CurrBlock[ii + jj * colsPerBlock]; - if (bm_value != m_value) { + if (std::fabs(bm_value - m_value) > + std::numeric_limits::epsilon()) { fail++; } }