10000 Make barrier blocking in UCC · pytorch/pytorch@c431ba0 · GitHub
[go: up one dir, main page]

Skip to content

Commit c431ba0

Browse files
Sergei-Lebedevpytorchmergebot
authored andcommitted
Make barrier blocking in UCC
1 parent d13b678 commit c431ba0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

torch/csrc/distributed/c10d/ProcessGroupUCC.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ void read_config() {
169169
for (auto op : parse_blocking_wait(blocking_wait_str)) {
170170
torch_ucc_config.blocking_wait[(std::uint8_t)op] = true;
171171
}
172+
// barrier is always blocking
173+
torch_ucc_config.blocking_wait[(std::uint8_t)OpType::BARRIER] = true;
172174

173175
torch_ucc_config.use_future =
174176
std::stoi(torch_ucc_envs_map.at("TORCH_UCC_USE_FUTURE"));

0 commit comments

Comments
 (0)
0