commit
bf6d6fcf17
2 changed files with 12 additions and 3 deletions
|
|
@ -17,6 +17,8 @@ include = [
|
||||||
"whisper.cpp/ggml.h",
|
"whisper.cpp/ggml.h",
|
||||||
"whisper.cpp/ggml-opencl.c",
|
"whisper.cpp/ggml-opencl.c",
|
||||||
"whisper.cpp/ggml-opencl.h",
|
"whisper.cpp/ggml-opencl.h",
|
||||||
|
"whisper.cpp/ggml-cuda.cu",
|
||||||
|
"whisper.cpp/ggml-cuda.h",
|
||||||
"whisper.cpp/LICENSE",
|
"whisper.cpp/LICENSE",
|
||||||
"whisper.cpp/whisper.cpp",
|
"whisper.cpp/whisper.cpp",
|
||||||
"whisper.cpp/whisper.h",
|
"whisper.cpp/whisper.h",
|
||||||
|
|
|
||||||
13
sys/build.rs
13
sys/build.rs
|
|
@ -34,11 +34,18 @@ fn main() {
|
||||||
#[cfg(feature = "cuda")]
|
#[cfg(feature = "cuda")]
|
||||||
{
|
{
|
||||||
println!("cargo:rustc-link-lib=cublas");
|
println!("cargo:rustc-link-lib=cublas");
|
||||||
println!("cargo:rustc-link-lib=culibos");
|
|
||||||
println!("cargo:rustc-link-lib=cudart");
|
println!("cargo:rustc-link-lib=cudart");
|
||||||
println!("cargo:rustc-link-lib=cublasLt");
|
println!("cargo:rustc-link-lib=cublasLt");
|
||||||
println!("cargo:rustc-link-search=/usr/local/cuda/lib64");
|
cfg_if! {
|
||||||
println!("cargo:rustc-link-search=/opt/cuda/lib64");
|
if #[cfg(target_os = "windows")] {
|
||||||
|
let cuda_path = PathBuf::from(env::var("CUDA_PATH").unwrap()).join("lib/x64");
|
||||||
|
println!("cargo:rustc-link-search={}", cuda_path.display());
|
||||||
|
} else {
|
||||||
|
println!("cargo:rustc-link-lib=culibos");
|
||||||
|
println!("cargo:rustc-link-search=/usr/local/cuda/lib64");
|
||||||
|
println!("cargo:rustc-link-search=/opt/cuda/lib64");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
println!("cargo:rerun-if-changed=wrapper.h");
|
println!("cargo:rerun-if-changed=wrapper.h");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue