Skip to content

make : use new flag variables for recent changes #3019

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

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

cebtenzzre
Copy link
Collaborator

Some PRs were recently merged that touch CFLAGS/CXXFLAGS/LDFLAGS, but were based on a version of llama.cpp prior to #2886 being merged. The Makefile has been updated to use MK_CFLAGS etc. where appropriate.

Comment on lines -371 to +360
MK_CPPFLAGS += -DGGML_USE_METAL #-DGGML_METAL_NDEBUG
MK_CPPFLAGS += -DGGML_USE_METAL
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's come from 3a00764.

@ggerganov Can we have a flag like LLAMA_METAL_NDEBUG for that? I use this flag when using tool like llama-bench, other times I think it would be useful not to enable the flag.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we can add LLAMA_METAL_NDEBUG to optionally disable metal debug prints.
I still prefer to have them enabled by default, but in the future, when things are more stable, we will disable them by default.

@cebtenzzre cebtenzzre merged commit 9e20231 into ggml-org:master Sep 5, 2023
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.

3 participants