Skip to content

Commit

Permalink
fix: fix cuda undefined reference error by adding cuda linkage (#1286)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored Jan 24, 2024
1 parent c32398a commit 22e0175
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/llama-cpp-bindings/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ fn build_llama_cpp() {
println!("cargo:rustc-link-search=native=/usr/local/cuda/lib64");
println!("cargo:rustc-link-lib=culibos");
}
println!("cargo:rustc-link-lib=cuda");
println!("cargo:rustc-link-lib=cudart");
println!("cargo:rustc-link-lib=cublas");
println!("cargo:rustc-link-lib=cublasLt");
Expand Down

0 comments on commit 22e0175

Please sign in to comment.