jcjohnson / neural-style

Torch implementation of neural style algorithm
MIT License
18.31k stars 2.71k forks source link

Cannot use CUDNN backend! Please help! #395

Open Hidden-dreamz opened 7 years ago

Hidden-dreamz commented 7 years ago

When i try to use cudnn i get this error on ubuntu 16.04, nvidia driver 378.13, Cuda 8.0 (full newest release), Cudnn 6 (same problem with 5.1) using torch-cl and installed all cutorch cunn cudnn with laurocks. Torch works with my gpu i just cant get CUDNN to work. Please help! thanks! (and im using 1070 gpu)

/home/josh/torch-cl/install/share/lua/5.1/cudnn/init.lua:98: attempt to call field 'hasFastHalfInstructions' (a nil value) stack traceback: /home/josh/torch-cl/install/share/lua/5.1/cudnn/init.lua:98: in function 'fasterHalfMathTypeForCurrentDevice' /home/josh/torch-cl/install/share/lua/5.1/cudnn/init.lua:112: in function 'configureMath' /home/josh/torch-cl/install/share/lua/5.1/cudnn/init.lua:131: in main chunk [C]: in function 'require' stdin:1: in main chunk [C]: at 0x00405e90

raustaburk commented 7 years ago

Update cutorch:

https://github.com/soumith/cudnn.torch/issues/279

ProGamerGov commented 6 years ago

Or try this solution: https://github.com/soumith/cudnn.torch/issues/383

It seems that you have to specify the right branch of cudnn.torch now?