7a78f4e95960bf8560b0547802f171e2b40e4f6b,python/ray/util/collective/collective_group/nccl_collective_group.py,NCCLGroup,destroy_group,#NCCLGroup#,126
Before Change
stream = self._get_cuda_stream()
stream.synchronize()
// destroy the communicator
self._collective_comm_cache.destroy()
self._collective_comm_cache = None
if self.rank == 0:
self._destroy_store(self.group_name)
After Change
def destroy_group(self):
Destroy the group and release NCCL communicators.
if len(self._dev_comm_map.keys()) > 0:
// TODO(Hao): check this barrier call
// self.barrier()
// Destroy the communicators and streams.
for comm_key, comms in self._dev_comm_map.items():
for c in comms:
c.destroy()
self._dev_comm_map[comm_key] = None
if self.rank == 0:
for comm_key in self._dev_comm_map:
assert not self._dev_comm_map[comm_key]
group_key = self._generate_group_key(comm_key)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: ray-project/ray
Commit Name: 7a78f4e95960bf8560b0547802f171e2b40e4f6b
Time: 2021-01-26
Author: zhisbug@users.noreply.github.com
File Name: python/ray/util/collective/collective_group/nccl_collective_group.py
Class Name: NCCLGroup
Method Name: destroy_group
Project Name: matplotlib/matplotlib
Commit Name: 931973c71af548b80d117efce068bd4ab63c8860
Time: 2018-04-18
Author: quantum.analyst@gmail.com
File Name: lib/matplotlib/backends/backend_gtk3.py
Class Name: HelpGTK3
Method Name: trigger
Project Name: michaelhush/M-LOOP
Commit Name: 4103cfdcd576d01a8277fa6c6c6bc18e88cfeddc
Time: 2017-05-29
Author: harry.slatyer@gmail.com
File Name: mloop/learners.py
Class Name: NeuralNetLearner
Method Name: run
Project Name: michaelhush/M-LOOP
Commit Name: fddf85f3cd3062e88e7f59c41ffdcf3c06d50689
Time: 2017-05-09
Author: harry.slatyer@gmail.com
File Name: mloop/nnlearner.py
Class Name: NeuralNetImpl
Method Name: load