Resolve Metal compilation errors for sdcpp (#720)

This commit is contained in:
bebopkim 2024-02-29 21:15:45 +09:00 committed by GitHub
parent 5a44d4de2b
commit 257015bb94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -124,7 +124,7 @@ public:
#endif #endif
#ifdef SD_USE_METAL #ifdef SD_USE_METAL
LOG_DEBUG("Using Metal backend"); LOG_DEBUG("Using Metal backend");
ggml_metal_log_set_callback(ggml_log_callback_default, nullptr); ggml_backend_metal_log_set_callback(ggml_log_callback_default, nullptr);
backend = ggml_backend_metal_init(); backend = ggml_backend_metal_init();
#endif #endif
@ -1775,4 +1775,4 @@ SD_API sd_image_t* img2vid(sd_ctx_t* sd_ctx,
LOG_INFO("img2vid completed in %.2fs", (t3 - t0) * 1.0f / 1000); LOG_INFO("img2vid completed in %.2fs", (t3 - t0) * 1.0f / 1000);
return result_images; return result_images;
} }

View file

@ -21,7 +21,7 @@ struct UpscalerGGML {
#endif #endif
#ifdef SD_USE_METAL #ifdef SD_USE_METAL
LOG_DEBUG("Using Metal backend"); LOG_DEBUG("Using Metal backend");
ggml_metal_log_set_callback(ggml_log_callback_default, nullptr); ggml_backend_metal_log_set_callback(ggml_log_callback_default, nullptr);
backend = ggml_backend_metal_init(); backend = ggml_backend_metal_init();
#endif #endif