Avoid linking with CUDA directly
This commit is contained in:
parent
06ba0b7279
commit
36aa876833
|
@ -42,8 +42,9 @@ test-stable-perf)
|
|||
.rs$ \
|
||||
Cargo.lock$ \
|
||||
Cargo.toml$ \
|
||||
ci/test-stable-perf.sh \
|
||||
ci/test-stable.sh \
|
||||
^ci/test-stable-perf.sh \
|
||||
^ci/test-stable.sh \
|
||||
^core/build.rs \
|
||||
^fetch-perf-libs.sh \
|
||||
^programs/ \
|
||||
^sdk/ \
|
||||
|
|
|
@ -41,14 +41,5 @@ fn main() {
|
|||
} else {
|
||||
println!("cargo:rerun-if-changed={}/libcuda-crypt.so", perf_libs_dir);
|
||||
}
|
||||
|
||||
let cuda_home = match env::var("CUDA_HOME") {
|
||||
Ok(cuda_home) => cuda_home,
|
||||
Err(_) => String::from("/usr/local/cuda"),
|
||||
};
|
||||
println!("cargo:rustc-link-search=native={}/lib64", cuda_home);
|
||||
println!("cargo:rustc-link-lib=dylib=cudart");
|
||||
println!("cargo:rustc-link-lib=dylib=cuda");
|
||||
println!("cargo:rustc-link-lib=dylib=cudadevrt");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PERF_LIBS_VERSION=v0.14.0
|
||||
PERF_LIBS_VERSION=v0.14.1
|
||||
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
|
|
Loading…
Reference in New Issue