Skip to content

Commit 603dcd6

Browse files
authored
[SYCL] Disable fast math in marray_geometric and math_vectorized_isgreater_test (#15281)
Very much the same as #15223 * `marray_geometric` - golden values against delta, which in fast math mode is not accurate enough, * `math_cectorized_isgreater_test` - uses compiler builtins (`__builtin_isgreaterequal`, `__builtin_isgreater`), when combined with fast math mode all bets are off.
1 parent 4cdce55 commit 603dcd6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

sycl/test-e2e/Basic/built-ins/marray_geometric.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// RUN: %{build} -o %t.out
1+
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
2+
3+
// RUN: %{build} %{mathflags} -o %t.out
24
// RUN: %{run} %t.out
35

46
#include "helpers.hpp"

sycl/test-e2e/syclcompat/math/math_vectorized_isgreater_test.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
//
3131
// ===----------------------------------------------------------------------===//
3232

33-
// RUN: %{build} -o %t.out
33+
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
34+
35+
// RUN: %{build} %{mathflags} -o %t.out
3436
// RUN: %{run} %t.out
3537

3638
#include <sycl/detail/core.hpp>

0 commit comments

Comments
 (0)