Open gooodooo opened 5 years ago
我有两张卡,不想用0卡,只想用1卡,请问一下该怎么设置
Add the following code to train.py import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ['CUDA_VISIBLE_DEVICES'] = "1"
import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ['CUDA_VISIBLE_DEVICES'] = "1"
我有两张卡,不想用0卡,只想用1卡,请问一下该怎么设置