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

Failing to load requirements #52

Closed
prohulaelk opened this issue Oct 4, 2015 · 5 comments
Closed

Failing to load requirements #52

prohulaelk opened this issue Oct 4, 2015 · 5 comments

Comments

@prohulaelk
Copy link

After following the installation instructions on Ubuntu 15.04, when I try to run, I get the following error:

$ th waifu2x.lua
/usr/local/bin/luajit: /usr/local/share/lua/5.1/trepl/init.lua:363: cuda runtime error (30) : unknown error at /tmp/luarocks_cutorch-scm-1-9445/cutorch/lib/THC/THCGeneral.c:16
stack traceback:
        [C]: in function 'error'
        /usr/local/share/lua/5.1/trepl/init.lua:363: in function 'require'
        /data/repos/lua/waifu2x/lib/portable.lua:2: in main chunk
        [C]: in function 'require'
        waifu2x.lua:1: in main chunk
        [C]: in function 'dofile'
        /usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
        [C]: at 0x00404270

I tried the solution for the similar-looking problem #3

$ echo $LD_LIBRARY_PATH
/usr/local/lib

But still get the same error

@nagadomi
Copy link
Owner

nagadomi commented Oct 4, 2015

It's seems to be CUDA installation issue.
Maybe CUDA is not installed correctly.

@prohulaelk
Copy link
Author

It looks like it is...

$ nvcc --version                  
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2014 NVIDIA Corporation
Built on Thu_Jul_17_21:41:27_CDT_2014
Cuda compilation tools, release 6.5, V6.5.12

I'll try reinstalling using 6.5.14 instead, see if that works.

@nagadomi
Copy link
Owner

nagadomi commented Oct 4, 2015

try

# When CUDA install path=/usr/local/cuda-7.0/
export PATH=/usr/local/cuda-7.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-7.0/lib64:$LD_LIBRARY_PATH
export CUDA_BIN_PATH=/usr/local/cuda-7.0/bin

@prohulaelk
Copy link
Author

Well, you were right about it being a cuda issue - it works if I install cuda 7.5 from the deb package, but not if I build it locally. Thanks!

@nagadomi
Copy link
Owner

nagadomi commented Oct 6, 2015

That was good.

@nagadomi nagadomi closed this as completed Oct 6, 2015
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