We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edbf29a commit c29cc57Copy full SHA for c29cc57
1 file changed
ggml/src/ggml-metal/ggml-metal.cpp
@@ -918,6 +918,10 @@ ggml_backend_reg_t ggml_backend_metal_reg(void) {
918
static std::vector<ggml_backend_device_ptr> devs;
919
920
if (!initialized) {
921
+ // workaround macOS limitation (kIOGPUCommandBufferCallbackErrorImpactingInteractivity) until proper fix becomes possible
922
+ // ref: https://github.com/ggml-org/llama.cpp/issues/20141#issuecomment-4272947703
923
+ setenv("AGX_RELAX_CDM_CTXSTORE_TIMEOUT", "1", true);
924
+
925
static ggml_backend_metal_reg_ptr reg_ctx(ggml_backend_metal_reg_init());
926
927
for (int i = 0; i < g_devices; ++i) {
0 commit comments