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

Commit

Permalink
Update CUDA_STANDARD and CXX_STANDARD to 17
Browse files Browse the repository at this point in the history
This PR updates the `CUDA_STANDARD` and `CXX_STANDARD` properties in CMake to be `17`. This resolves some build issues that are currently occurring in RAPIDS Docker builds.
  • Loading branch information
ajschmidt8 committed Dec 15, 2021
1 parent 4e3dbf6 commit 48af5d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/Utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function(xgboost_set_cuda_flags target)
endif (MSVC)

set_target_properties(${target} PROPERTIES
CUDA_STANDARD 14
CUDA_STANDARD 17
CUDA_STANDARD_REQUIRED ON
CUDA_SEPARABLE_COMPILATION OFF)
endfunction(xgboost_set_cuda_flags)
Expand All @@ -190,7 +190,7 @@ endmacro(xgboost_link_nccl)
# compile options
macro(xgboost_target_properties target)
set_target_properties(${target} PROPERTIES
CXX_STANDARD 14
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
POSITION_INDEPENDENT_CODE ON)
if (HIDE_CXX_SYMBOLS)
Expand Down

0 comments on commit 48af5d0

Please sign in to comment.