7a78f4e95960bf8560b0547802f171e2b40e4f6b,python/ray/util/collective/collective_group/nccl_collective_group.py,NCCLGroup,destroy_group,#NCCLGroup#,126

Before Change


            for key, comm in self._p2p_comm_cache.items():
                comm.destroy()
                min_rank, max_rank = self._parse_p2p_group_key(key)
                if self.rank == min_rank:
                    self._destroy_store(key)
                self._p2p_comm_cache[key] = None
            for key in list(self._p2p_comm_cache.keys()):
                del self._p2p_comm_cache[key]
            self._p2p_comm_cache = None

After Change


            // 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:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: NervanaSystems/coach
Commit Name: 135f02fb461bd31bcb3d2d32e5f7d72fe6417478
Time: 2019-01-23
Author: gal.novik@intel.com
File Name: rl_coach/dashboard_components/globals.py
Class Name: DialogApp
Method Name: getDirDialog


Project Name: NervanaSystems/coach
Commit Name: 135f02fb461bd31bcb3d2d32e5f7d72fe6417478
Time: 2019-01-23
Author: gal.novik@intel.com
File Name: rl_coach/dashboard_components/globals.py
Class Name: DialogApp
Method Name: getFileDialog