Skip to content

Commit

Permalink
set reuse dist env
Browse files Browse the repository at this point in the history
  • Loading branch information
tohtana committed Oct 12, 2024
1 parent e096310 commit 4877418
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/unit/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,13 @@ def _launch_daemonic_procs(self, num_procs):
# Create process pool or use cached one
master_port = None

if get_accelerator().device_name() == 'hpu':
if self.reuse_dist_env:
print("Ignoring reuse_dist_env for hpu")
self.reuse_dist_env = False
# if get_accelerator().device_name() == 'hpu':
# if self.reuse_dist_env:
# print("Ignoring reuse_dist_env for hpu")
# self.reuse_dist_env = False

print("[MEM_DEBUG] Ignoring reuse_dist_env and forcibly setting it to False")
self.reuse_dist_env = False

if self.reuse_dist_env:
if num_procs not in self._pool_cache:
Expand Down

0 comments on commit 4877418

Please sign in to comment.