Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NewCclCommMgr on runtime #10617

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
NewCclCommMgr on runtime
  • Loading branch information
ShawnXuan committed Feb 20, 2025
commit d81d9acdb4c09c4c585de72c5d1a388b07b54dea
8 changes: 6 additions & 2 deletions oneflow/core/job/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ Runtime::Runtime(
Singleton<RuntimeJobDescs>::Get()->AddPlan(plan);
collective_boxing_scheduler_plan_token_ =
Singleton<boxing::collective::Scheduler>::Get()->AddPlan(plan);
#ifdef WITH_CUDA
const auto& vaild_ccl_comm_mgr_device_types =
EagerCclCommMgrBuilder::Get().vaild_ccl_comm_mgr_device_types();
if (!vaild_ccl_comm_mgr_device_types.empty() && !Singleton<EagerCclCommMgr>::Get()) {
Singleton<EagerCclCommMgr>::SetAllocated(
EagerCclCommMgrBuilder::Get().NewCclCommMgr(vaild_ccl_comm_mgr_device_types.front()));
}
Singleton<EagerCclCommMgr>::Get()->CreateCommFromPlan(plan);
#endif // WITH_CUDA
}
std::vector<const TaskProto*> source_tasks;
source_tasks.reserve(plan.task().size());
Expand Down
Loading