Skip to content

Conversation

stduhpf
Copy link
Contributor

@stduhpf stduhpf commented Dec 5, 2024

Some ggml API changes were causing metal builds to fail.

Fixes #512

#ifdef SD_USE_METAL
LOG_DEBUG("Using Metal backend");
ggml_backend_metal_log_set_callback(ggml_log_callback_default, nullptr);
ggml_log_set(ggml_log_callback_default, nullptr);
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this should be inside of the ifdef.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're probably right. I just replaced 1 to 1 to make sure I'm not breaking other backends as a side effect.

@dreampuf
Copy link

Could we pass the PR? I have the same problem for MacOS build.

@leejet leejet merged commit 0d9d665 into leejet:master Dec 28, 2024
9 checks passed
@leejet
Copy link
Owner

leejet commented Dec 28, 2024

Thank you for your contribution.

stduhpf added a commit to stduhpf/stable-diffusion.cpp that referenced this pull request Dec 28, 2024
@stduhpf stduhpf deleted the fix-metal-build branch January 1, 2025 15:48
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.

Build failing with Metal

4 participants