提交 2bbce2f9 编写于 作者: M Megvii Engine Team

fix(mgb/opr-mm): fix m_megray_ctx init

GitOrigin-RevId: 7804fbe2ef28b6014e3f82a59675948442665e7d
上级 dbf77640
......@@ -408,7 +408,6 @@ CollectiveComm::CollectiveComm(
"CollectiveComm inputs should not contain duplicated input device");
ModeTrait::from_mode(param.mode).add_output_var(this, inp_cn);
m_megray_ctx = MegRay::CudaContext::make(get_stream(output(0)));
const char* c_debug = MGB_GETENV("MGE_MM_OPR_DEBUG");
if (c_debug != nullptr and strcmp(c_debug, "1") == 0) {
......@@ -469,6 +468,8 @@ void CollectiveComm::opr_register() {
hash, m_key, m_nr_devices, m_rank,
get_megray_backend(m_backend), m_group_client);
m_megray_ctx = MegRay::CudaContext::make(get_stream(output(0)));
m_init = true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册