Skip to content

Conversation

@DaAwesomeP
Copy link

This PR does two things:

  1. Only copy the Metal header files for non-embedded builds. Otherwise these files are unused and never cleaned up.
  2. Use CMAKE_CURRENT_BINARY_DIR for auto-generated files in embedded builds. This places the autogenerated scratch directory in a GGML-specific build directory separate from the application depending on GGML.

When building GGML as a dependency for another project, these files are currently dumped into the main application's build folder.

@DaAwesomeP DaAwesomeP requested a review from ggerganov as a code owner January 9, 2026 00:36
@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 Jan 9, 2026
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.

2 participants