Skip to content

Commit

Permalink
[SYCL] Disable fast math in marray_geometric and math_vectorized_isgr…
Browse files Browse the repository at this point in the history
…eater_test (intel#15281)

Very much the same as intel#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.
  • Loading branch information
jchlanda committed Sep 5, 2024
1 parent 4cdce55 commit 603dcd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sycl/test-e2e/Basic/built-ins/marray_geometric.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// RUN: %{build} -o %t.out
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}

// RUN: %{build} %{mathflags} -o %t.out
// RUN: %{run} %t.out

#include "helpers.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
//
// ===----------------------------------------------------------------------===//

// RUN: %{build} -o %t.out
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}

// RUN: %{build} %{mathflags} -o %t.out
// RUN: %{run} %t.out

#include <sycl/detail/core.hpp>
Expand Down

0 comments on commit 603dcd6

Please sign in to comment.