torch / cunn

Other
215 stars 174 forks source link

Jetson Tx2 compile error #469

Open junteken opened 7 years ago

junteken commented 7 years ago

Hello there~

I installed jetpack on my jetson tx2 board.

And I tried to install cunn with luarocks, the following error occured.

Could you tell me how to solve it?

Error :

[ 33%] Building NVCC (Device) object lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_PReLU.cu.o /tmp/luarocks_cunn-scm-1-6855/cunn/lib/THCUNN/generic/PReLU.cu(138): error: too many arguments in function call

/tmp/luarocks_cunn-scm-1-6855/cunn/lib/THCUNN/generic/PReLU.cu(150): error: too many arguments in function call

/tmp/luarocks_cunn-scm-1-6855/cunn/lib/THCUNN/generic/PReLU.cu(151): error: too many arguments in function call

/tmp/luarocks_cunn-scm-1-6855/cunn/lib/THCUNN/generic/PReLU.cu(138): error: too many arguments in function call

/tmp/luarocks_cunn-scm-1-6855/cunn/lib/THCUNN/generic/PReLU.cu(150): error: too many arguments in function call

/tmp/luarocks_cunn-scm-1-6855/cunn/lib/THCUNN/generic/PReLU.cu(151): error: too many arguments in function call

/tmp/luarocks_cunn-scm-1-6855/cunn/lib/THCUNN/generic/PReLU.cu(138): error: too many arguments in function call

/tmp/luarocks_cunn-scm-1-6855/cunn/lib/THCUNN/generic/PReLU.cu(150): error: too many arguments in function call

/tmp/luarocks_cunn-scm-1-6855/cunn/lib/THCUNN/generic/PReLU.cu(151): error: too many arguments in function call

9 errors detected in the compilation of "/tmp/tmpxft_0000130d_00000000-7_PReLU.cpp1.ii". CMake Error at THCUNN_generated_PReLU.cu.o.cmake:267 (message): Error generating file /tmp/luarocks_cunn-scm-1-6855/cunn/build/lib/THCUNN/CMakeFiles/THCUNN.dir//./THCUNN_generated_PReLU.cu.o

lib/THCUNN/CMakeFiles/THCUNN.dir/build.make:203: recipe for target 'lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_PReLU.cu.o' failed make[2]: [lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_PReLU.cu.o] Error 1 make[2]: Waiting for unfinished jobs.... CMakeFiles/Makefile2:103: recipe for target 'lib/THCUNN/CMakeFiles/THCUNN.dir/all' failed make[1]: [lib/THCUNN/CMakeFiles/THCUNN.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: [all] Error 2

lspoo commented 7 years ago

same here.

varadhodiyil commented 7 years ago

same here ! Is there any workaround for this ? thanks

JamesAllingham commented 7 years ago

Same here - on a AWS p2.xlarge!

@varadhodiyil What worked for me was reinstalling torch, following the instructions on the torch website maybe that will work for you too.