Skip to content

Commit

Permalink
fix xla launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Aug 28, 2022
1 parent 151755c commit cd9bf08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytorch_lightning/strategies/launchers/xla.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _wrapping_function(
return_queue: SimpleQueue,
global_states: Optional[_GlobalStateSnapshot] = None,
) -> None:
self._local_rank = process_idx
self._strategy._local_rank = process_idx
results = function(*args, **kwargs)

if trainer is not None:
Expand Down

0 comments on commit cd9bf08

Please sign in to comment.