Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
add -ftemplate-backtrace-limit=0 only UNIX
Browse files Browse the repository at this point in the history
  • Loading branch information
sunjiweiswift committed Jun 26, 2024
1 parent 07325e2 commit 3d71451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ else()
set(XETLA_KERNEL_FLAGS ${XETLA_KERNEL_FLAGS} -Xs "${XETLA_OFFLINE_OPTIONS}")
endif()

add_compile_options(-fsycl -fsycl-device-code-split=per_kernel -ftemplate-backtrace-limit=0)
add_compile_options(-fsycl -fsycl-device-code-split=per_kernel)
add_compile_options(-Wall -Wextra -Werror)

include(ProcessorCount)
Expand All @@ -75,7 +75,7 @@ add_link_options(-fsycl -fsycl-device-code-split=per_kernel -fsycl-max-parallel-
add_link_options(${XETLA_KERNEL_FLAGS})

if(UNIX)
add_compile_options(-fp-model=precise)
add_compile_options(-fp-model=precise -ftemplate-backtrace-limit=0)
add_link_options(-lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm)
link_libraries(-lgtest -lgtest_main)
else() # Windows
Expand Down

0 comments on commit 3d71451

Please sign in to comment.