Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it support running on cpu? #310

Closed
margaretmm opened this issue Jun 30, 2018 · 4 comments
Closed

Does it support running on cpu? #310

margaretmm opened this issue Jun 30, 2018 · 4 comments

Comments

@margaretmm
Copy link

I ran this command: python2 test.py --dataroot datasets/horse2zebra/testA --name horse2zebra_pretrained --model test

and it return :

THCudaCheck FAIL file=torch/csrc/cuda/Module.cpp line=32 error=35 : CUDA driver version is insufficient for CUDA runtime version
Traceback (most recent call last):
File "test.py", line 10, in
opt = TestOptions().parse()
File "/home/AI/pytorch-CycleGAN-and-pix2pix/options/base_options.py", line 115, in parse
torch.cuda.set_device(opt.gpu_ids[0])
File "/usr/lib64/python2.7/site-packages/torch/cuda/init.py", line 262, in set_device
torch._C._cuda_setDevice(device)
RuntimeError: cuda runtime error (35) : CUDA driver version is insufficient for CUDA runtime version at torch/csrc/cuda/Module.cpp:32

@junyanz
Copy link
Owner

junyanz commented Jul 4, 2018

[updated] Set --gpu_ids -1. See here for more details.

@junyanz junyanz closed this as completed Sep 9, 2018
@ghost
Copy link

ghost commented Oct 1, 2018

@junyanz you mean gpu_ids -1?
also before training we should start the vserver? python -m visdom.server

@junyanz
Copy link
Owner

junyanz commented Oct 2, 2018

Yes, -1. If you want the visualization, you should start the visdom server. Otherwise, you can set --display_id 0.

@ghost
Copy link

ghost commented Oct 2, 2018

@junyanz Thanks man for your hard work!

@IceDragonFla IceDragonFla mentioned this issue Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants