forked from conda-forge/xgboost-feedstock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set CUDA_RUNTIME_LIBRARY for individual targets
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/cmake/Utils.cmake b/cmake/Utils.cmake | ||
index f28c1f27..57752b03 100644 | ||
--- a/cmake/Utils.cmake | ||
+++ b/cmake/Utils.cmake | ||
@@ -182,12 +182,14 @@ function(xgboost_set_cuda_flags target) | ||
set_target_properties(${target} PROPERTIES | ||
CUDA_STANDARD 17 | ||
CUDA_STANDARD_REQUIRED ON | ||
- CUDA_SEPARABLE_COMPILATION OFF) | ||
+ CUDA_SEPARABLE_COMPILATION OFF | ||
+ CUDA_RUNTIME_LIBRARY Static) | ||
else () | ||
set_target_properties(${target} PROPERTIES | ||
CUDA_STANDARD 14 | ||
CUDA_STANDARD_REQUIRED ON | ||
- CUDA_SEPARABLE_COMPILATION OFF) | ||
+ CUDA_SEPARABLE_COMPILATION OFF | ||
+ CUDA_RUNTIME_LIBRARY Static) | ||
endif (PLUGIN_RMM) | ||
endfunction(xgboost_set_cuda_flags) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters