]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
metal : Extend how Llama.cpp locates metal resources (#10676)
authorRobert Ormandi <redacted>
Sat, 7 Dec 2024 07:55:01 +0000 (01:55 -0600)
committerGitHub <redacted>
Sat, 7 Dec 2024 07:55:01 +0000 (09:55 +0200)
commit86a1934978ce5daffc7e5b4251f6540ee5e7b47b
tree6830edd767d996ace14948f296688208acc605c7
parent784a14aa496a66cc43e76014a1bf4333b4a2a55a
metal : Extend how Llama.cpp locates metal resources (#10676)

* metal : Extend how Llama.cpp locates metal resources (#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>
ggml/src/ggml-metal/ggml-metal.m