mbhenaff / spectral-lib

45 stars 18 forks source link

spectral-lib/cuda/init.cu(122): error: incomplete type is not allowed #11

Closed ili3p closed 8 years ago

ili3p commented 8 years ago

Full trace:

deep25:spectral-lib/⇒  luarocks install spectralnet-scm-1.rockspec

Using spectralnet-scm-1.rockspec... switching to 'build' mode
     mkdir -p build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/ilija/mount_ds/torch_25/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/ilija/mount_ds/torch_25/install/lib/luarocks/rocks/spectralnet/scm-1" && make

-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
-- 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
-- Found Torch7 in /home/ilija/mount_ds/torch_25/install
-- Found CUDA: /usr/local/cuda (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: /home/ilija/spectral-lib/build
[ 50%] Building NVCC (Device) object CMakeFiles/spectralnet.dir/cuda/./spectralnet_generated_init.cu.o
/home/ilija/spectral-lib/cuda/init.cu(122): error: incomplete type is not allowed

/home/ilija/spectral-lib/cuda/init.cu(147): error: identifier "luaL_openlib" is undefined

/home/ilija/spectral-lib/cuda/fft_product2.cu(103): warning: conversion from a string literal to "char *" is deprecated

/home/ilija/spectral-lib/cuda/fft_product2.cu(103): warning: conversion from a string literal to "char *" is deprecated

/home/ilija/spectral-lib/cuda/fft_product2.cu(104): warning: conversion from a string literal to "char *" is deprecated

/home/ilija/spectral-lib/cuda/fft_product2.cu(104): warning: conversion from a string literal to "char *" is deprecated

2 errors detected in the compilation of "/tmp/tmpxft_00001210_00000000-7_init.cpp1.ii".
CMake Error at spectralnet_generated_init.cu.o.cmake:267 (message):
  Error generating file
  /home/ilija/spectral-lib/build/CMakeFiles/spectralnet.dir/cuda/./spectralnet_generated_init.cu.o

make[2]: *** [CMakeFiles/spectralnet.dir/cuda/./spectralnet_generated_init.cu.o] Error 1
make[1]: *** [CMakeFiles/spectralnet.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.
deep25:spectral-lib/⇒  nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17
ili3p commented 8 years ago

It's not due to Cuda 7.5, it fails with 7.0 too with the same error

ili3p commented 8 years ago

I tried wth C and CXX 4.8.2 still the same problem. On one server it succeeds but I cannot figure out why..

ili3p commented 8 years ago

OK I think I figured it out why it works on one server. That server has an older installation of torch. So, spectral-lib cannot be installed with the latest version of torch.

ili3p commented 8 years ago

Ok the problem was the Lua version, it only works with 5.1 not 5.2!