前提・実現したいこと
torchをつかってcycleGAN (https://github.com/junyanz/CycleGAN)
をうごかしたいです。
https://github.com/torch/distro で torch のインストールをしたいのですが
エラーが出てしまいました。
発生している問題・エラーメッセージ
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CUDA_cublas_device_LIBRARY (ADVANCED) linked by target "THC" in directory /Users/kobayashimasato/torch/extra/cutorch/lib/THC -- Configuring incomplete, errors occurred! See also "/Users/kobayashimasato/torch/extra/cutorch/build/CMakeFiles/CMakeOutput.log". See also "/Users/kobayashimasato/torch/extra/cutorch/build/CMakeFiles/CMakeError.log".
該当のソースコード
bash
1 2bash install-deps 3./install.sh
試したこと
Issues をみて
./clean.sh
export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"
./install.sh
を試してみました。
どなたかご教示お願いします。
CMakeOutput.log、CMakeError.logの内容の追記はできますでしょうか。
コメントありがとうございます。
以下がCMakeError.logです。
Performing C SOURCE FILE Test HAS_LUAL_SETFUNCS failed with the following output:
Change Dir: /Users/kobayashimasato/torch/extra/cutorch/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_cbd15/fast"
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_cbd15.dir/build.make CMakeFiles/cmTC_cbd15.dir/build
Building C object CMakeFiles/cmTC_cbd15.dir/src.c.o
/Library/Developer/CommandLineTools/usr/bin/clang -I/Users/kobayashimasato/torch/install/include -std=c99 -Werror=implicit-function-declaration -DHAS_LUAL_SETFUNCS -o CMakeFiles/cmTC_cbd15.dir/src.c.o -c /Users/kobayashimasato/torch/extra/cutorch/build/CMakeFiles/CMakeTmp/src.c
/Users/kobayashimasato/torch/extra/cutorch/build/CMakeFiles/CMakeTmp/src.c:5:20: error: use of undeclared identifier 'luaL_setfuncs'; did you mean 'lua_setfenv'?
long i = sizeof(&luaL_setfuncs);
^~~~~~~~~~~~~
lua_setfenv
/Users/kobayashimasato/torch/install/include/lua.h:195:16: note: 'lua_setfenv' declared here
LUA_API int (lua_setfenv) (lua_State *L, int idx);
^
1 error generated.
make[1]: *** [CMakeFiles/cmTC_cbd15.dir/src.c.o] Error 1
make: *** [cmTC_cbd15/fast] Error 2
Source file was:
#include <lauxlib.h>
int main()
{
long i = sizeof(&luaL_setfuncs);
return 0;
}
以下がCMakeOutput.logです
The system is: Darwin - 17.7.0 - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /Library/Developer/CommandLineTools/usr/bin/clang
Build flags:
Id flags:
The output was:
0
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
The C compiler identification is AppleClang, found in "/Users/kobayashimasato/torch/extra/cutorch/build/CMakeFiles/3.13.2/CompilerIdC/a.out"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /Library/Developer/CommandLineTools/usr/bin/clang++
Build flags:
Id flags:
The output was:
0
すいません、CMakeOutput.logは500行以上あってのせきれませんでした。