Skip to content
Closed
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
18 changes: 17 additions & 1 deletion recipe/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
context:
name: llama.cpp
version: "6441"
build: 0
build: 1

package:
name: ${{ name|lower }}
Expand Down Expand Up @@ -38,6 +38,12 @@ build:
${{ cmake_args("BUILD_SHARED_LIBS=ON") }}
${{ llama_args("CURL=ON") }}

# Vulkan is only useful on Linux, as on macOS
# metal is used
{%- if linux %}
${{ ggml_args("VULKAN=ON") }}
{%- endif %}
Comment on lines +41 to +45
Copy link
Member

@jjerphan jjerphan Sep 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM to me.


{%- if osx and arm64 %}
${{ ggml_args("NATIVE=OFF") }}
${{ ggml_args("AVX=OFF") }}
Expand Down Expand Up @@ -67,6 +73,11 @@ build:

{%- endif %}

{%- if build_platform != target_platform %}
${{ cmake_args("HOST_C_COMPILER=$CC_FOR_BUILD") }}
${{ cmake_args("HOST_CXX_COMPILER=$CXX_FOR_BUILD") }}
{%- endif %}

echo $LLAMA_ARGS
cmake -S . -B build -G Ninja ${CMAKE_ARGS} ${LLAMA_ARGS}
cmake --build build
Expand All @@ -93,6 +104,8 @@ build:

${{ ggml_args("NATIVE=OFF") }}

${{ ggml_args("VULKAN=ON") }}

{%- if cuda_compiler_version != "None" %}
${{ ggml_args("CUDA=ON") }}

Expand Down Expand Up @@ -137,6 +150,9 @@ requirements:
- pkgconfig
host:
- libcurl
- libvulkan-headers
- libvulkan-loader
- shaderc
- if: cuda_compiler_version != "None"
then:
# NOTE: Without cuda-version, we are installing cuda-toolkit 11.8 instead of 11.2!
Expand Down