Skip to content

Commit

Permalink
Vulkan support working
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed Mar 1, 2024
1 parent e93c977 commit affcb48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 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 @@ -84,6 +84,7 @@ fn build_llama_cpp() {
}
if cfg!(feature = "vulkan") {
config.define("LLAMA_VULKAN", "ON");
println!("cargo:rustc-link-lib=vulkan");
}

// By default, this value is automatically inferred from Rust’s compilation profile.
Expand Down
2 changes: 1 addition & 1 deletion crates/llama-cpp-bindings/llama.cpp
Submodule llama.cpp updated 220 files
2 changes: 1 addition & 1 deletion crates/llama-cpp-bindings/src/engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ struct BackendInitializer {
g_llama_cpp_log_level = std::stoi(level);
}
llama_log_set(llama_log_callback, nullptr);
llama_backend_init(false);
llama_backend_init();
}

~BackendInitializer() {
Expand Down

0 comments on commit affcb48

Please sign in to comment.