]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
metal : Extend how Llama.cpp locates metal resources (llama/10676)
authorRobert Ormandi <redacted>
Sat, 7 Dec 2024 07:55:01 +0000 (01:55 -0600)
committerGeorgi Gerganov <redacted>
Tue, 10 Dec 2024 16:33:03 +0000 (18:33 +0200)
commitf1e5a9ddc9702631c3e4f3a6b1183536d6db7de4
tree013ad109921b79540ccbc017851fbf5ca4d6e92f
parente702374aa155790039261da2e8603b880bf96155
metal : Extend how Llama.cpp locates metal resources (llama/10676)

* metal : Extend how Llama.cpp locates metal resources (llama/10675)

  * It searches the resource file in the directory where the current
    binary is located as well.
  * Resolves symbolic links.

Rationale:

When we plug this dependency into a Bazel build and run it in the
context of Bazel (e.g. testing):

  * the execution directory is often very different from where the files
    are located and no direct control over this (Bazel sandboxing),
  * the Bazel sandbox often use symbolic links to make files available.

With this patch, we can have the resource file added to the target,
can build and run tests in the context of Bazel.

* Update ggml/src/ggml-metal/ggml-metal.m

Co-authored-by: Georgi Gerganov <redacted>
* Update ggml/src/ggml-metal/ggml-metal.m

Co-authored-by: Georgi Gerganov <redacted>
---------

Co-authored-by: Georgi Gerganov <redacted>
src/ggml-metal/ggml-metal.m