mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-12-16 17:40:09 +08:00
may fix RuntimeError: MUSA error: an illegal memory access was encountered
This commit is contained in:
parent
90141d2029
commit
06994f2a13
@ -17,6 +17,7 @@ import torch.multiprocessing as mp
|
|||||||
from torch.cuda.amp import GradScaler
|
from torch.cuda.amp import GradScaler
|
||||||
musa_ddp = False
|
musa_ddp = False
|
||||||
if musa_utils.is_available():
|
if musa_utils.is_available():
|
||||||
|
os.environ["MUSA_LAUNCH_BLOCKING"] = 1
|
||||||
autocast = torch.musa.amp.autocast
|
autocast = torch.musa.amp.autocast
|
||||||
musa_ddp = musa_utils.should_ddp()
|
musa_ddp = musa_utils.should_ddp()
|
||||||
elif torch.cuda.is_available():
|
elif torch.cuda.is_available():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user