Skip to content

Commit 973dc77

Browse files
bachelor-douqnixsynapse
authored andcommitted
CANN: Simplify the environment variable setting(ggml-org#13104)
* Simplify the environment variable setting to specify the memory pool type. * Adjust the GGML_CANN_ASYNC_MODE setting to accept yes, enable, 1, or on (case-insensitive) as valid options. * update * fix CI * update * delete whitespace * fix according to review * update CANN.md * update CANN.md
1 parent d97ef32 commit 973dc77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cann/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ struct ggml_backend_cann_context {
359359
ggml_cann_set_device(device);
360360
description = aclrtGetSocName();
361361

362-
async_mode = parse_bool(get_env("GGML_CANN_ASYNC_MODE").value_or(""));
362+
bool async_mode = parse_bool(get_env("GGML_CANN_ASYNC_MODE").value_or(""));
363363
GGML_LOG_INFO("%s: device %d async operator submission is %s\n", __func__,
364364
device, async_mode ? "ON" : "OFF");
365365
}

0 commit comments

Comments
 (0)