Skip to content

Commit 619cc91

Browse files
committed
set USE_LIBUV=0 on windows
1 parent 0d8a556 commit 619cc91

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lightning/fabric/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import logging
44
import os
5+
import sys
56

67
from lightning_utilities.core.imports import package_available
78

@@ -26,6 +27,10 @@
2627
# https://github.com/pytorch/pytorch/issues/83973
2728
os.environ["PYTORCH_NVML_BASED_CUDA_CHECK"] = "1"
2829

30+
# see https://github.com/pytorch/pytorch/issues/139990
31+
if sys.platform == "win32":
32+
os.environ["USE_LIBUV"] = "0"
33+
2934

3035
from lightning.fabric.fabric import Fabric # noqa: E402
3136
from lightning.fabric.utilities.seed import seed_everything # noqa: E402

0 commit comments

Comments
 (0)