Avoid linking with CUDA directly

This commit is contained in:
Michael Vines 2019-06-21 12:08:10 -07:00
parent 06ba0b7279
commit 36aa876833
3 changed files with 4 additions and 12 deletions

View File

@ -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/ \

View File

@ -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");
}
}

View File

@ -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")"