Skip to content

Commit f7e0cfd

Browse files
committed
update
1 parent 0d0c264 commit f7e0cfd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ggml/src/ggml-cann/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,10 @@ struct ggml_backend_cann_context {
359359
description = aclrtGetSocName();
360360

361361
std::string value = to_lower_case(getenv("GGML_CANN_ASYNC_MODE"));
362-
std::set<std::string> valid_values = {"on", "1", "yes", "enable"};
362+
std::set<std::string> valid_values = {"on", "1", "yes", "y", "enable"};
363363
async_mode = valid_values.find(value) != valid_values.end();
364364
GGML_LOG_INFO("%s: device %d async operator submission is %s\n", __func__,
365-
device, async_mode ? "ON" : "OFF");
365+
device, async_mode ? "ON" : "OFF");git
366366
}
367367

368368
/**

ggml/src/ggml-cann/ggml-cann.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ int32_t ggml_cann_get_device() {
9696
* @brief Convert the value obtained from getenv to a lowercase std::string.
9797
*
9898
* @param env_var C-style string(char*)
99-
* @return A string of type std::stringD.
99+
* @return A string of type std::string.
100100
*/
101101
static std::string to_lower_case(const char* env_var){
102102
std::string mem_pool_type(env_var ? env_var : "");

0 commit comments

Comments
 (0)