neural-style icon indicating copy to clipboard operation
neural-style copied to clipboard

THCudaCheck FAIL line=62 error=35

Open krwarner opened this issue 8 years ago • 5 comments
trafficstars

When I input sudo th neural_style.lua -style_image sao1.jpg -content_image nge_02.jpg -gpu -1

I get the output THCudaCheck FAIL file=/tmp/luarocks_cutorch-scm-1-8295/cutorch/lib/THC/THCGeneral.c line=62 error=35 : CUDA driver version is insufficient for CUDA runtime version /usr/local/bin/luajit: /usr/local/share/lua/5.1/trepl/init.lua:389: cuda runtime error (35) : CUDA driver version is insufficient for CUDA runtime version at /tmp/luarocks_cutorch-scm-1-8295/cutorch/lib/THC/THCGeneral.c:62 stack traceback: [C]: in function 'error' /usr/local/share/lua/5.1/trepl/init.lua:389: in function 'require' neural_style.lua:329: in function 'setup_gpu' neural_style.lua:53: in function 'main' neural_style.lua:604: in main chunk [C]: in function 'dofile' /usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406260 Thank you for the help!

krwarner avatar Dec 11 '16 20:12 krwarner

CUDA driver version is insufficient for CUDA runtime version. Check your CUDA driver and runtime version. This guide might be helpful.

MrZoidberg avatar Dec 15 '16 23:12 MrZoidberg

I don't have a CUDA compatible video card. However, that shouldn't matter as I input -gpu -1 in order to run on only CPU and not require CUDA or GPU.

krwarner avatar Dec 16 '16 16:12 krwarner

@krwarner Can you try updating neural-style? I think this error is due to a bug that was fixed in https://github.com/jcjohnson/neural-style/commit/ebccf67b283e5ca8f2ef6799332c63740556937a.

jcjohnson avatar Dec 16 '16 16:12 jcjohnson

@jcjohnson hey johnson, i have updated neural-style and kept getting the output exactly same with @krwarner

Annachen0918 avatar Dec 19 '16 07:12 Annachen0918

Bless you, krwarner, the -gpu flag was exactly what I needed to get beyond my CUDA errors!

kotodharma avatar Feb 17 '18 02:02 kotodharma