karpathy / char-rnn

Multi-layer Recurrent Neural Networks (LSTM, GRU, RNN) for character-level language models in Torch
11.53k stars 2.58k forks source link

cunn and cutorch are not found (but they ARE installed) #179

Closed canpoyrazoglu closed 7 years ago

canpoyrazoglu commented 7 years ago

I've installed cunn and cutorch using luarocks and they've built successfully. However, when I try train.lua, I'm getting this:

Cans-MacBook-Pro:char-rnn-master Can$ th train.lua
package cunn not found! 
package cutorch not found!  
If cutorch and cunn are installed, your CUDA toolkit may be improperly configured.  
Check your CUDA toolkit installation, rebuild cutorch and cunn, and try again.  
Falling back on CPU mode    
loading data files...   

I've installed and used char-rnn with GPU on this very machine before (but it was gone after a reformat) but for some reason I can't get it to working now.

Why can't char-rnn see my cudd and cutorch installation?

canpoyrazoglu commented 7 years ago

For some reason, I've reinstalled torch again after cunn and cutorch and now it identifies and run correctly on CUDA.