From: Xinpeng Dou Date: Sat, 28 Jun 2025 09:35:41 +0000 (+0800) Subject: fix async_mode bug (#14432) X-Git-Tag: upstream/0.0.5882~112 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=b25e92774e2fa4ee3820e458d5cf43f40190f8d2;p=pkg%2Fggml%2Fsources%2Fllama.cpp fix async_mode bug (#14432) --- diff --git a/ggml/src/ggml-cann/common.h b/ggml/src/ggml-cann/common.h index ba2cef0c..8dfe3b06 100755 --- a/ggml/src/ggml-cann/common.h +++ b/ggml/src/ggml-cann/common.h @@ -359,7 +359,7 @@ struct ggml_backend_cann_context { ggml_cann_set_device(device); description = aclrtGetSocName(); - bool async_mode = parse_bool(get_env("GGML_CANN_ASYNC_MODE").value_or("")); + async_mode = parse_bool(get_env("GGML_CANN_ASYNC_MODE").value_or("")); GGML_LOG_INFO("%s: device %d async operator submission is %s\n", __func__, device, async_mode ? "ON" : "OFF"); }