Skip to content

Commit

Permalink
Re-group functions in math_reference according to feature macros
Browse files Browse the repository at this point in the history
  • Loading branch information
fknorr committed Dec 26, 2024
1 parent c7f7166 commit b9e29db
Show file tree
Hide file tree
Showing 3 changed files with 1,182 additions and 1,182 deletions.
4 changes: 2 additions & 2 deletions cmake/FindDPCPP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ set(DPCPP_FLAGS "-fsycl;-sycl-std=2020;${DPCPP_FLAGS}")
# -fsycl-id-queries-fit-in-int is an optimization enabled by default, but
# adds non-conformant behavior that limits the number of work-items in an
# invocation of a kernel, so we disable this behavior here.
set(DPCPP_FLAGS "${DPCPP_FLAGS};-fno-sycl-id-queries-fit-in-int")
# set(DPCPP_FLAGS "${DPCPP_FLAGS};-fno-sycl-id-queries-fit-in-int")

# Set target triple(s) if specified
if(DEFINED DPCPP_TARGET_TRIPLES)
Expand Down Expand Up @@ -62,7 +62,7 @@ endif()
option(DPCPP_SYCL2020_CONFORMANT_APIS
"Comply with the SYCL 2020 specification" ON)
if(DPCPP_SYCL2020_CONFORMANT_APIS)
set(CMAKE_CXX_FLAGS "-DSYCL2020_CONFORMANT_APIS -fpreview-breaking-changes ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "-DSYCL2020_CONFORMANT_APIS ${CMAKE_CXX_FLAGS}")
endif()

add_library(DPCPP::Runtime INTERFACE IMPORTED GLOBAL)
Expand Down
Loading

0 comments on commit b9e29db

Please sign in to comment.