Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

THCudaCheck FAIL file=/tmp/luarocks_cutorch-scm-1-3884/cutorch/lib/THC/THCGeneral.c line=70 error=35 : CUDA driver version is insufficient for CUDA runtime version #80

Open
AnuragRoy82 opened this issue Nov 3, 2018 · 1 comment

Comments

@AnuragRoy82
Copy link

I am getting the error on the title THCudaCheck FAIL file=/tmp/luarocks_cutorch-scm-1-3884/cutorch/lib/THC/THCGeneral.c line=70 error=35 : CUDA driver version is insufficient for CUDA runtime version while running main.py. Is there any way to run main.py if I am using Pytorch CPU?

@egrefen
Copy link

egrefen commented Dec 1, 2018

There's a bug in the flag declaration (AFAIK). The lines 48-49 in main.py should be:

parser.add_argument('--cuda', action='store_true', default=False,
                    help='use CUDA')

instead of

parser.add_argument('--cuda', action='store_false',
                    help='use CUDA')

For now, you can (counter-intuitively) deactivate cuda (e.g. on a machine with no GPU) by adding the flag --cuda to your arguments.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants