Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
de4c88f9
Unverified
Commit
de4c88f9
authored
Aug 28, 2025
by
James Lamb
Committed by
GitHub
Aug 28, 2025
Browse files
[CUDA] default to C++17 for CUDA builds (#7013)
parent
56616fba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
CMakeLists.txt
CMakeLists.txt
+4
-2
No files found.
CMakeLists.txt
View file @
de4c88f9
...
@@ -36,7 +36,9 @@ endif()
...
@@ -36,7 +36,9 @@ endif()
project
(
lightgbm LANGUAGES C CXX
)
project
(
lightgbm LANGUAGES C CXX
)
if
(
BUILD_CPP_TEST
)
if
(
USE_CUDA
)
set
(
CMAKE_CXX_STANDARD 17
)
elseif
(
BUILD_CPP_TEST
)
set
(
CMAKE_CXX_STANDARD 14
)
set
(
CMAKE_CXX_STANDARD 14
)
else
()
else
()
set
(
CMAKE_CXX_STANDARD 11
)
set
(
CMAKE_CXX_STANDARD 11
)
...
@@ -262,7 +264,7 @@ if(USE_CUDA)
...
@@ -262,7 +264,7 @@ if(USE_CUDA)
add_definitions
(
-DUSE_CUDA
)
add_definitions
(
-DUSE_CUDA
)
if
(
NOT DEFINED CMAKE_CUDA_STANDARD
)
if
(
NOT DEFINED CMAKE_CUDA_STANDARD
)
set
(
CMAKE_CUDA_STANDARD 1
1
)
set
(
CMAKE_CUDA_STANDARD 1
7
)
set
(
CMAKE_CUDA_STANDARD_REQUIRED ON
)
set
(
CMAKE_CUDA_STANDARD_REQUIRED ON
)
endif
()
endif
()
endif
()
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment