Skip to content

Conversation

@ormandi
Copy link
Contributor

@ormandi ormandi commented Dec 4, 2024

  • 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.

Make sure to read the contributing guidelines before submitting a PR

  * 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.
@github-actions github-actions bot added ggml changes relating to the ggml tensor library for machine learning Apple Metal https://en.wikipedia.org/wiki/Metal_(API) labels Dec 4, 2024
@ormandi ormandi closed this Dec 5, 2024
@ormandi
Copy link
Contributor Author

ormandi commented Dec 5, 2024

Closed in favor of #10676 which has a single squashed commit and the rite PR naming to respect the contribution guide. Sorry for sending this PR which was not in line with the requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Apple Metal https://en.wikipedia.org/wiki/Metal_(API) ggml changes relating to the ggml tensor library for machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant