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

module 'inn' not found: #46

Closed
himanshurobo opened this issue Dec 7, 2016 · 3 comments
Closed

module 'inn' not found: #46

himanshurobo opened this issue Dec 7, 2016 · 3 comments

Comments

@himanshurobo
Copy link

I tried to install
"luarocks install inn" but i found error

Installing https://raw.githubusercontent.com/torch/rocks/master/inn-1.0-0.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/inn-1.0-0.rockspec... switching to 'build' mode
Cloning into 'imagine-nn'...
remote: Counting objects: 27, done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 27 (delta 1), reused 9 (delta 0), pack-reused 0
Receiving objects: 100% (27/27), 15.26 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Checking connectivity... done.
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/stylabs/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/stylabs/torch/install/lib/luarocks/rocks/inn/1.0-0";
make

-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Torch7 in /home/stylabs/torch/install
-- Found CUDA: /usr (found suitable version "7.5", minimum required is "6.5")
-- Compiling for CUDA architecture: 3.5
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_inn-1.0-0-1407/imagine-nn/build
[ 33%] Building NVCC (Device) object CMakeFiles/inn.dir/inn_generated_ROIPooling.cu.o
/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;
^
CMake Error at inn_generated_ROIPooling.cu.o.cmake:267 (message):
Error generating file
/tmp/luarocks_inn-1.0-0-1407/imagine-nn/build/CMakeFiles/inn.dir//./inn_generated_ROIPooling.cu.o

CMakeFiles/inn.dir/build.make:70: recipe for target 'CMakeFiles/inn.dir/inn_generated_ROIPooling.cu.o' failed
make[2]: *** [CMakeFiles/inn.dir/inn_generated_ROIPooling.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/inn.dir/all' failed
make[1]: *** [CMakeFiles/inn.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Error: Build error: Failed building.

@paucarre
Copy link
Owner

paucarre commented Jan 4, 2017

that seems to be problem with inn rather the project itself. Are you using luarocks from torch repo or from the linux distro?

@himanshurobo
Copy link
Author

himanshurobo commented Jan 5, 2017

@paucarre yes. I install from torch repo and install with CUDA. I tried to install with inn repo but still its shows the same error which can be solved

Since internally it calls inn. I am unable to change the CMake file. What would be the solutions.

Could please help.

@paucarre
Copy link
Owner

paucarre commented Jan 5, 2017

which cuda version and gcc version are you using?
Keep in mind if you use GCC 5, you have to use CUDA 8.
take a look at BVLC/caffe#4046

@paucarre paucarre closed this as completed Jan 5, 2017
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