luanfujun / deep-photo-styletransfer

Code and data for paper "Deep Photo Style Transfer": https://arxiv.org/abs/1703.07511
9.99k stars 1.41k forks source link

Lual_openlib problem #62

Open elfPlane opened 7 years ago

elfPlane commented 7 years ago

I got a problem with [$ make clean && make

find . -type f | xargs -n 5 touch rm -f libcuda_utils.so
/usr/local/cuda-8.0/bin/nvcc -arch sm_35 -O3 -DNDEBUG --compiler-options '-fPIC' -o libcuda_utils.so --shared cuda_utils.cu -I/home/chloe/torch/install/include/THC -I/home/chloe/torch/install/include/TH -I/home/chloe/torch/install/include -L/home/chloe/torch/install/lib -Xlinker -rpath,/home/chloe/torch/install/lib -lluaT -lTHC -lTH -lpng cuda_utils.cu(509): error: identifier "luaL_openlib" is undefined

1 error detected in the compilation of "/tmp/tmpxft_00004fc0_00000000-9_cuda_utils.cpp1.ii". makefile:10: 'libcuda_utils.so' failed operation]

Do you know about this problem to solve? with cuda 8.0

rahul-iyer commented 6 years ago

Any idea how you solved this ?

BestJuly commented 6 years ago

@elfPlane @rahul-iyer The problem was the Lua version, it only works with 5.1 not 5.2. I have the same question and I solve the problem by reinstall torch with lua 5.1. TORCH_LUA_VERSION=LUA51 ./install.sh