aaron-xichen / pytorch-playground

Base pretrained models and datasets in pytorch (MNIST, SVHN, CIFAR10, CIFAR100, STL10, AlexNet, VGG16, VGG19, ResNet, Inception, SqueezeNet)
MIT License
2.6k stars 607 forks source link

how to run without GPU #42

Open xing-zhou opened 4 years ago

xing-zhou commented 4 years ago

I find the parameters num_gpu=args.ngpu, selected_gpus=args.gpu by default they can be 0 and none,but when I run the train code, it would say Command 'nvidia-smi' returned non-zero exit status 127.. I reviewed the code, in the auto_select_gpu function, though no gpu selected, it would still try info = subprocess.check_output('nvidia-smi', shell=True).decode('utf-8'). so I wonder how can I continue in case of no GPU.

lemonade117 commented 3 years ago

I have 1 gpu for 2GB. When I run train.py, I got "No sufficient resource, available: [], require 2 gpu".

haojie1588 commented 3 years ago

I have 1 gpu for 2GB. When I run train.py, I got "No sufficient resource, available: [], require 2 gpu I encountered the same problem, how can I solve it?