Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@ jobs:
sub-packages: '["nvcc", "cudart"]'
non-cuda-sub-packages: '["libcublas", "libcublas-dev"]'

# libvulkan-dev provides the unversioned libvulkan.so the linker needs
# (-lvulkan). Required even for the prebuilt Vulkan target: its archive
# ships libggml-vulkan but links against the system Vulkan loader.
- name: Install Vulkan SDK
if: matrix.vulkan && !matrix.prebuilt
if: matrix.vulkan
run: sudo apt-get update && sudo apt-get install -y glslc libvulkan-dev

- name: Add Intel oneAPI repository
Expand Down
10 changes: 8 additions & 2 deletions crates/llama-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,15 @@ fn add_lib_dir_from_pkg_config(package: &str) {
}
}

/// Check whether `GGML_<backend>` is explicitly set (to any value).
/// Check whether `GGML_<backend>` is explicitly set to a non-empty value.
///
/// CI passes backend flags as `GGML_VULKAN: ${{ matrix.vulkan && 'ON' || '' }}`,
/// which exports the variable as an empty string on targets that don't use that
/// backend. An empty value must count as "not set" — otherwise a plain CPU or
/// macOS build would try to link the Vulkan libraries that aren't present in its
/// (non-Vulkan) prebuilt archive.
fn is_explicitly_set(var: &str) -> bool {
env::var(var).is_ok()
env::var(var).is_ok_and(|v| !v.trim().is_empty())
}
Comment on lines 99 to 101

/// Returns true if *any other* GPU backend was explicitly requested via env var.
Expand Down
2 changes: 1 addition & 1 deletion third_party/llama.cpp
Submodule llama.cpp updated 2418 files
Loading