Skip to content

Commit

Permalink
Merge pull request #724 from steffenlarsen/steffen/dpcpp_huge_device_…
Browse files Browse the repository at this point in the history
…code_linking

Add -fsycl-link-huge-device-code linker flags for DPCPP
  • Loading branch information
bader committed Jun 22, 2023
2 parents 153b1f5 + 618729b commit 71c2d62
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/FindDPCPP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ set(CMAKE_CXX_FLAGS "${DPCPP_FP_FLAG} ${CMAKE_CXX_FLAGS}")
# Disable range rounding feature to reduce # of SYCL kernels.
set(CMAKE_CXX_FLAGS "-D__SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING__ ${CMAKE_CXX_FLAGS}")

# Set flag to allow linking of large device code files. This option is currently
# not available on Windows.
if(NOT WIN32)
set(CMAKE_CXX_LINK_FLAGS "-fsycl-link-huge-device-code ${CMAKE_CXX_LINK_FLAGS}")
endif()

option(DPCPP_DISABLE_SYCL2020_DEPRECATION_WARNINGS
"Disable SYCL 2020 deprecation warnings" ON)
if(DPCPP_DISABLE_SYCL2020_DEPRECATION_WARNINGS)
Expand Down

0 comments on commit 71c2d62

Please sign in to comment.