From 1e969b23c50dfbf5d1901b99d9c4d96476e2d9d7 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Tue, 2 Aug 2022 16:35:39 -0500 Subject: [PATCH] Use -fno-fast-math to ensure that device code uses accurate transcendentals --- dpnp/backend/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/dpnp/backend/CMakeLists.txt b/dpnp/backend/CMakeLists.txt index 81f073cee3c3..362e04515f57 100644 --- a/dpnp/backend/CMakeLists.txt +++ b/dpnp/backend/CMakeLists.txt @@ -113,6 +113,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) # SYCL related compile options add_compile_options(-fsycl) add_compile_options(-fsycl-device-code-split=per_kernel) +add_compile_options(-fno-fast-math) add_link_options(-fsycl) add_link_options(-fsycl-device-code-split=per_kernel)