Skip to content

Commit

Permalink
syclstd 2017 in new release to propagate subgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
yhmtsai committed Oct 4, 2021
1 parent b89eb71 commit a69d34b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ if(MSVC)
elseif(GINKGO_BUILD_DPCPP OR CMAKE_CXX_COMPILER MATCHES "dpcpp")
# For now always use `-ffp-model=precise` with DPC++. This can be removed when
# the floating point issues are fixed.
set(GINKGO_COMPILER_FLAGS "-Wpedantic;-ffp-model=precise" CACHE STRING
# -sycl-std=2017 is temporary workaround after 2021.4 to propagate subgroup setting correctly
set(GINKGO_COMPILER_FLAGS "-Wpedantic;-ffp-model=precise;-sycl-std=2017" CACHE STRING
"Set the required CXX compiler flags, mainly used for warnings. Current default is `-Wpedantic;-ffp-model=precise`")
else()
set(GINKGO_COMPILER_FLAGS "-Wpedantic" CACHE STRING
Expand Down

0 comments on commit a69d34b

Please sign in to comment.