There was an error while loading. Please reload this page.
2 parents ece10fc + b867ac8 commit ab54768Copy full SHA for ab54768
lightgbm-sys/build.rs
@@ -41,6 +41,7 @@ fn main() {
41
.profile("Release")
42
.uses_cxx11()
43
.define("BUILD_STATIC_LIB", "ON")
44
+ .define("USE_CUDA", "1")
45
.define("USE_CUDA_EXP", "1")
46
.build();
47
@@ -89,8 +90,6 @@ fn main() {
89
90
#[cfg(feature = "cuda")]
91
{
92
println!("cargo:rustc-link-search={}", "/usr/local/cuda/lib64");
- println!("cargo:rustc-link-search={}", "/usr/local/cuda/lib64/stubs");
93
- println!("cargo:rustc-link-lib=dylib=cuda");
94
- println!("cargo:rustc-link-lib=dylib=cudart");
+ println!("cargo:rustc-link-lib=static=cudart_static");
95
}
96
0 commit comments