Skip to content

Commit

Permalink
rename LCT log ctx from lci to lct; add log for pmi
Browse files Browse the repository at this point in the history
  • Loading branch information
JiakunYan committed Jan 19, 2024
1 parent ba79f70 commit 78b0b5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lct/lct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void init()
};
LCT_log_ctx_default = LCT_log_ctx_alloc(
log_levels, sizeof(log_levels) / sizeof(log_levels[0]), LCT_LOG_WARN,
"lci", getenv("LCT_LOG_OUTFILE"), getenv("LCT_LOG_LEVEL"),
"lct", getenv("LCT_LOG_OUTFILE"), getenv("LCT_LOG_LEVEL"),
getenv("LCT_LOG_WHITELIST"), getenv("LCT_LOG_BLACKLIST"));

// check cache size
Expand Down
3 changes: 3 additions & 0 deletions lct/pmi/pmi_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ void LCT_pmi_initialize()
"Tried [%s]. Did not find valid PMI backend! Give up!\n",
backends_str.c_str());
lcti_pmi_ops.initialize();
LCT_Log(LCT_log_ctx_default, LCT_LOG_INFO, "pmi",
"This process is initialized as %d/%d.\n", LCT_pmi_get_rank(),
LCT_pmi_get_size());
}

int LCT_pmi_initialized() { return lcti_pmi_ops.is_initialized(); }
Expand Down

0 comments on commit 78b0b5d

Please sign in to comment.