Skip to content

Commit 1c6517a

Browse files
committed
Disable floating-point optimizations that assume arguments and results are not NaNs or +-Inf
1 parent a37dfdc commit 1c6517a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dpnp/backend/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ string(CONCAT COMMON_COMPILE_FLAGS
9393
"-fsycl "
9494
"-fsycl-device-code-split=per_kernel "
9595
"-fno-approx-func "
96+
"-fno-finite-math-only "
9697
)
9798
string(CONCAT COMMON_LINK_FLAGS
9899
"-fsycl "

utils/command_build_clib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
# default variables (for Linux)
6464
_project_compiler = "icpx"
6565
_project_linker = "icpx"
66-
_project_cmplr_flag_sycl_devel = ["-fsycl-device-code-split=per_kernel", "-fno-approx-func"]
66+
_project_cmplr_flag_sycl_devel = ["-fsycl-device-code-split=per_kernel", "-fno-approx-func", "-fno-approx-func"]
6767
_project_cmplr_flag_sycl = ["-fsycl"]
6868
_project_cmplr_flag_stdcpp_static = [] # This brakes TBB ["-static-libstdc++", "-static-libgcc"]
6969
_project_cmplr_flag_compatibility = ["-Wl,--enable-new-dtags"]

0 commit comments

Comments
 (0)