add libraries to CUDA search path
This commit is contained in:
parent
e2f39c9c25
commit
9dd66a3b4b
1 changed files with 9 additions and 0 deletions
|
|
@ -31,6 +31,15 @@ fn main() {
|
|||
println!("cargo:rustc-link-lib=clblast");
|
||||
println!("cargo:rustc-link-lib=OpenCL");
|
||||
}
|
||||
#[cfg(feature = "cuda")]
|
||||
{
|
||||
println!("cargo:rustc-link-lib=cublas");
|
||||
println!("cargo:rustc-link-lib=culibos");
|
||||
println!("cargo:rustc-link-lib=cudart");
|
||||
println!("cargo:rustc-link-lib=cublasLt");
|
||||
println!("cargo:rustc-link-search=/usr/local/cuda/lib64");
|
||||
println!("cargo:rustc-link-search=/opt/cuda/lib64");
|
||||
}
|
||||
println!("cargo:rerun-if-changed=wrapper.h");
|
||||
|
||||
if env::var("WHISPER_DONT_GENERATE_BINDINGS").is_ok() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue