Skip to content

Commit 0101740

Browse files
committed
add -fno-reciprocal-math to SYCL_KERNEL_OPTIONS
1 parent b44682c commit 0101740

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/BuildFlags.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ macro(set_build_flags)
9696
# gcc -shared host.o kernel.o device-code.o -o libxxx.so
9797
set(SYCL_KERNEL_OPTIONS ${SYCL_KERNEL_OPTIONS} -fno-sycl-unnamed-lambda)
9898
set(SYCL_KERNEL_OPTIONS ${SYCL_KERNEL_OPTIONS} -sycl-std=2020)
99+
set(SYCL_KERNEL_OPTIONS ${SYCL_KERNEL_OPTIONS} -fno-reciprocal-math)
99100
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
100101
set(SYCL_KERNEL_OPTIONS ${SYCL_KERNEL_OPTIONS} /fp:strict)
101102
# Suppress warnings about dllexport.

0 commit comments

Comments
 (0)