Skip to content

Build failing with Metal #512

@grorge123

Description

@grorge123

When I update to the newest commit 9578fdc, I encounter the build issue for metal. But it works for no metal or cuda.

  • Compile command
cmake .. -DSD_METAL=ON
cmake --build . --config Release
  • Cmake error message
stable-diffusion.cpp/./ggml_extend.hpp:1143:13: error: use of undeclared identifier 'ggml_backend_metal_set_n_cb'
            ggml_backend_metal_set_n_cb(backend, n_threads);

stable-diffusion.cpp/stable-diffusion.cpp:164:9: error: use of undeclared identifier 'ggml_backend_metal_log_set_callback'
        ggml_backend_metal_log_set_callback(ggml_log_callback_default, nullptr);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions