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
2e3543c0
Unverified
Commit
2e3543c0
authored
Jan 11, 2024
by
Samuel Johnson
Committed by
GitHub
Jan 11, 2024
Browse files
[cmake] [CUDA] ignore CUDA-specific source files in non-CUDA builds (fixes #6267) (#6268)
parent
5516533c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
CMakeLists.txt
CMakeLists.txt
+8
-2
No files found.
CMakeLists.txt
View file @
2e3543c0
...
...
@@ -428,7 +428,10 @@ file(
src/network/*.cpp
src/treelearner/*.cpp
src/utils/*.cpp
if
(
USE_CUDA
)
)
file
(
GLOB
LGBM_CUDA_SOURCES
src/treelearner/*.cu
src/boosting/cuda/*.cpp
src/boosting/cuda/*.cu
...
...
@@ -442,9 +445,12 @@ if(USE_CUDA)
src/io/cuda/*.cpp
src/cuda/*.cpp
src/cuda/*.cu
endif
()
)
if
(
USE_CUDA
)
list
(
APPEND SOURCES
${
LGBM_CUDA_SOURCES
}
)
endif
()
add_library
(
lightgbm_objs OBJECT
${
SOURCES
}
)
if
(
BUILD_CLI
)
...
...
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