metal : workaround macOS GPU interactivity watchdog (#22216)
This commit is contained in:
@@ -918,6 +918,10 @@ ggml_backend_reg_t ggml_backend_metal_reg(void) {
|
|||||||
static std::vector<ggml_backend_device_ptr> devs;
|
static std::vector<ggml_backend_device_ptr> devs;
|
||||||
|
|
||||||
if (!initialized) {
|
if (!initialized) {
|
||||||
|
// workaround macOS limitation (kIOGPUCommandBufferCallbackErrorImpactingInteractivity) until proper fix becomes possible
|
||||||
|
// ref: https://github.com/ggml-org/llama.cpp/issues/20141#issuecomment-4272947703
|
||||||
|
setenv("AGX_RELAX_CDM_CTXSTORE_TIMEOUT", "1", true);
|
||||||
|
|
||||||
static ggml_backend_metal_reg_ptr reg_ctx(ggml_backend_metal_reg_init());
|
static ggml_backend_metal_reg_ptr reg_ctx(ggml_backend_metal_reg_init());
|
||||||
|
|
||||||
for (int i = 0; i < g_devices; ++i) {
|
for (int i = 0; i < g_devices; ++i) {
|
||||||
|
|||||||
Reference in New Issue
Block a user