Browse Source

mmSetCurrentThreadName

tags/v1.5.1
zhangxiaokun 3 years ago
parent
commit
f7c45d8114
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/graph/execute/model_executor.cc

+ 1
- 1
ge/graph/execute/model_executor.cc View File

@@ -193,7 +193,7 @@ Status ModelExecutor::PushGraph(const RunArgs &args) {


void ModelExecutor::RunThread() { void ModelExecutor::RunThread() {
ErrorManager::GetInstance().SetStage(error_message::kModelExecute, error_message::kModelExecute); ErrorManager::GetInstance().SetStage(error_message::kModelExecute, error_message::kModelExecute);
if (prctl(PR_SET_NAME, ("GE_Run")) != 0) {
if (mmSetCurrentThreadName("GE_Run") != EN_OK) {
GELOGW("Set thread name failed."); GELOGW("Set thread name failed.");
} }




Loading…
Cancel
Save