Commit 6511cdf 1 parent b4701a1 commit 6511cdf Copy full SHA for 6511cdf
File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,11 @@ std::shared_ptr<xcclComm_t> ProcessGroupXCCL::getXCCLComm(
303
303
304
304
at::xpu::OptionalXPUGuard gpuGuard (device);
305
305
306
+ for (const auto i : c10::irange (xcclActiveGroupCounter_)) {
307
+ (void )i;
308
+ ccl::group_end ();
309
+ }
310
+
306
311
int numRanks, rank;
307
312
if (!singleP2POp) {
308
313
numRanks = getSize ();
@@ -342,6 +347,11 @@ std::shared_ptr<xcclComm_t> ProcessGroupXCCL::getXCCLComm(
342
347
-1 , // globalRankStride
343
348
size_); // worldSize
344
349
350
+ for (const auto i : c10::irange (xcclActiveGroupCounter_)) {
351
+ (void )i;
352
+ ccl::group_start ();
353
+ }
354
+
345
355
std::lock_guard<std::mutex> lock (mutex_);
346
356
devXCCLCommMap_.emplace (deviceKey, XCCLComm);
347
357
xcclStreamsMap_.emplace (deviceKey, std::move (stream));
You can’t perform that action at this time.
0 commit comments