Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: fix Metal build after #2310 #2350

Merged
merged 1 commit into from
May 15, 2024
Merged

cmake: fix Metal build after #2310 #2350

merged 1 commit into from
May 15, 2024

Conversation

cebtenzzre
Copy link
Member

Apparently adding default.metallib to the executable instead of ggml-metal.metal is insufficient. You must also:

  • Set the GENERATED property on the source globally, so add_executable doesn't complain that it isn't found
  • Add a dependency on the ggml-metal target, so make actually generates default.metallib instead of complaining that it isn't found

I don't understand why this is needed, but it works.

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
@cebtenzzre cebtenzzre requested a review from manyoso May 15, 2024 21:59
cebtenzzre added a commit that referenced this pull request May 15, 2024
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
@manyoso manyoso merged commit a92d266 into main May 15, 2024
6 of 19 checks passed
cebtenzzre added a commit that referenced this pull request May 15, 2024
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants