From: Xinpeng Dou Date: Sat, 28 Jun 2025 09:35:41 +0000 (+0800) Subject: fix async_mode bug (llama/14432) X-Git-Tag: upstream/1.7.6~17 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f31ed384f4be6a6114b5d6158375b2ecbfdda3ed;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp fix async_mode bug (llama/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"); }