mirror of
https://github.com/lemonade-sdk/mac_linuxgpu.git
synced 2026-11-22 23:57:31 -10:00
llama.cpp is the first application of the Vulkan path. third_party/llama.cpp pins b11379 as an optional, unpatched upstream (sparse, update = none); scripts/bootstrap.sh --llama-only fetches it and verify-upstream.py checks it once checked out. scripts/build-llama-vulkan.sh (make llama-vulkan) builds it with GGML_VULKAN against the Vulkan loader (Homebrew's or the LunarG SDK's), Metal, BLAS and libcurl off, into build/llama.cpp/bin: llama-bench, llama-completion and test-backend-ops. Its shaders need shaderc's glslc. scripts/llama-radv.sh runs any program with the loader pointed at the RADV ICD alone, so a MoltenVK installation is not used. test-llama-offline brings the CS fixture device up inside llama.cpp's own test-backend-ops (vulkan/tests/fixture_preload.c, inserted through MLG_PRELOAD) so its Vulkan backend runs on RADV on the software GPU: llama.cpp lists the R9700, and in performance mode ADD and the Q4_0/Q4_K matrix multiplications of a feed-forward layer (matrix-vector and matrix-matrix pipelines) are compiled by ACO, allocated, submitted and fenced. It skips unless RADV and llama.cpp are built.
18 lines
452 B
Plaintext
18 lines
452 B
Plaintext
[submodule "third_party/linux"]
|
|
path = third_party/linux
|
|
url = https://github.com/torvalds/linux.git
|
|
shallow = true
|
|
ignore = dirty
|
|
[submodule "third_party/mesa"]
|
|
path = third_party/mesa
|
|
url = https://gitlab.freedesktop.org/mesa/mesa.git
|
|
shallow = true
|
|
ignore = dirty
|
|
update = none
|
|
[submodule "third_party/llama.cpp"]
|
|
path = third_party/llama.cpp
|
|
url = https://github.com/ggml-org/llama.cpp.git
|
|
shallow = true
|
|
ignore = dirty
|
|
update = none
|