Skip to content

Commit

Permalink
correct usage in multiprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
jingxu10 committed Oct 25, 2023
1 parent c5018fc commit 1b90607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lightning/fabric/strategies/launchers/multiprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from lightning.fabric.strategies import ParallelStrategy

if _lightning_xpu_available():
from lightning_xpu.fabric import XPUAccelerator
from lightning_xpu.fabric import XPUAccelerator, is_xpu_initialized


class _MultiProcessingLauncher(_Launcher):
Expand Down Expand Up @@ -258,7 +258,7 @@ def _check_bad_xpu_fork() -> None:
Lightning users.
"""
if not XPUAccelerator.is_xpu_initialized():
if not is_xpu_initialized():
return

message = (
Expand Down

0 comments on commit 1b90607

Please sign in to comment.