Skip to content

Commit

Permalink
fix: adding cuda search path to docker build.
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored Oct 28, 2023
1 parent 2d94863 commit 6dd12ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/llama-cpp-bindings/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ fn main() {
}
if cfg!(feature = "cuda") {
config.define("LLAMA_CUBLAS", "ON");
println!("cargo:rustc-link-search=native=/usr/local/cuda/lib64");
println!("cargo:rustc-link-search=native=/opt/cuda/lib64");
println!("cargo:rustc-link-lib=cudart");
println!("cargo:rustc-link-lib=culibos");
println!("cargo:rustc-link-lib=cublas");
println!("cargo:rustc-link-lib=cublasLt");
}
Expand Down

0 comments on commit 6dd12ce

Please sign in to comment.