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

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