Skip to content

Commit

Permalink
Wrap nccl.get_unique_id in try/except (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
daurer committed Mar 21, 2024
1 parent c601059 commit 36b9370
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ptypy/accelerate/cuda_cupy/multi_gpu.py
Expand Up @@ -98,7 +98,10 @@ def __init__(self):
# get a unique identifier for the NCCL communicator and
# broadcast it to all MPI processes (assuming one device per process)
if self.rank == 0:
self.id = nccl.get_unique_id()
try:
self.id = nccl.get_unique_id()
except:
self.id = None
else:
self.id = None

Expand Down

0 comments on commit 36b9370

Please sign in to comment.