hughperkins / cltorch

An OpenCL backend for torch.
Other
289 stars 26 forks source link

cannot install this on macbook pro #19

Closed kingfengji closed 8 years ago

kingfengji commented 9 years ago

my macbook pro uses AMD Radeon R9 M370X 2048 MB card but when I use luarocks to install cltorch, I cannot build it with the returning message/tmp/luarocks_cltorch-scm-1-8314/cltorch/cltorch/src/EasyCL/CLWrapper.h:17:1: warning: 'CLWrapper' defined as a class here but previously declared as a struct [-Wmismatched-tags] class EasyCL_EXPORT CLWrapper { ^ /tmp/luarocks_cltorch-scm-1-8314/cltorch/cltorch/src/lib/THClGeneral.h:39:1: note: did you mean class here? struct CLWrapper; ^~ class 7 warnings generated. make[1]: * [src/lib/CMakeFiles/THCl.dir/all] Error 2 make: * [all] Error 2

Error: Build error: Failed building.

What to do now?

hughperkins commented 9 years ago

those are both warnings. Shouldnt prevent the build completing. Can you provide the entire build output please?

kingfengji commented 9 years ago

Installing https://raw.githubusercontent.com/torch/rocks/master/cltorch-scm-1.rockspec... Using https://raw.githubusercontent.com/torch/rocks/master/cltorch-scm-1.rockspec... switching to 'build' mode Cloning into 'cltorch'... remote: Counting objects: 117, done. remote: Compressing objects: 100% (112/112), done. remote: Total 117 (delta 10), reused 32 (delta 2), pack-reused 0 Receiving objects: 100% (117/117), 206.84 KiB | 328.00 KiB/s, done. Resolving deltas: 100% (10/10), done. Checking connectivity... done. git clone --recursive git://github.com/hughperkins/cltorch.git && cd cltorch && cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH="/Users/kingfengji/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/Users/kingfengji/torch/install/lib/luarocks/rocks/cltorch/scm-1" && make -j$(getconf _NPROCESSORS_ONLN) install

Cloning into 'cltorch'... remote: Counting objects: 3755, done. remote: Compressing objects: 100% (110/110), done. remote: Total 3755 (delta 58), reused 0 (delta 0), pack-reused 3645 Receiving objects: 100% (3755/3755), 828.51 KiB | 366.00 KiB/s, done. Resolving deltas: 100% (2531/2531), done. Checking connectivity... done. Submodule 'src/EasyCL' (https://github.com/hughperkins/EasyCL.git) registered for path 'src/EasyCL' Submodule 'src/clMathLibraries/clBLAS' (https://github.com/hughperkins/clBLAS) registered for path 'src/clMathLibraries/clBLAS' Cloning into 'src/EasyCL'... remote: Counting objects: 1654, done. remote: Compressing objects: 100% (23/23), done. remote: Total 1654 (delta 8), reused 0 (delta 0), pack-reused 1631 Receiving objects: 100% (1654/1654), 812.05 KiB | 269.00 KiB/s, done. Resolving deltas: 100% (1083/1083), done. Checking connectivity... done. Submodule path 'src/EasyCL': checked out 'f71af9fa7a9a8b7ea5aea9db278fa74c79ed7805' Submodule 'thirdparty/clew' (https://github.com/hughperkins/clew.git) registered for path 'thirdparty/clew' Cloning into 'thirdparty/clew'... remote: Counting objects: 215, done. remote: Total 215 (delta 0), reused 0 (delta 0), pack-reused 215 Receiving objects: 100% (215/215), 78.88 KiB | 103.00 KiB/s, done. Resolving deltas: 100% (82/82), done. Checking connectivity... done. Submodule path 'src/EasyCL/thirdparty/clew': checked out '1d2752564b6af98d24127cdb2d573d3f9ac98f02' Cloning into 'src/clMathLibraries/clBLAS'... remote: Counting objects: 1978, done. remote: Total 1978 (delta 0), reused 0 (delta 0), pack-reused 1978 Receiving objects: 100% (1978/1978), 1.83 MiB | 379.00 KiB/s, done. Resolving deltas: 100% (1200/1200), done. Checking connectivity... done. Submodule path 'src/clMathLibraries/clBLAS': checked out 'bdaf1f9ef3d97168fdaff4c3ef588feeae72b171' -- The C compiler identification is AppleClang 6.1.0.6020053 -- The CXX compiler identification is AppleClang 6.1.0.6020053 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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 /Users/kingfengji/torch/install /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/build /private/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean Submodule path 'src/EasyCL': checked out 'f71af9fa7a9a8b7ea5aea9db278fa74c79ed7805' Submodule path 'src/EasyCL/thirdparty/clew': checked out '1d2752564b6af98d24127cdb2d573d3f9ac98f02' Submodule path 'src/clMathLibraries/clBLAS': checked out 'bdaf1f9ef3d97168fdaff4c3ef588feeae72b171' CMAKE_INSTALL_PREFIX /Users/kingfengji/torch/install CMAKE_INSTALL_PREFIX /Users/kingfengji/torch/install CLBLAS_INCLUDE_DIRS /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src;/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/thirdparty/clew/include/proxy-opencl DEEPCL_LIBRARIES /Users/kingfengji/torch/install/lib/libEasyCL.dylib;/Users/kingfengji/torch/install/lib/libclew.dylib git version 2.5.3 -- Configuring done -- Generating done -- Build files have been written to: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/build [ 1%] Generating TensorMath.c Scanning dependencies of target easycl_delete_stamp Scanning dependencies of target git_cltorch_rec default default default default default default default default default default [ 1%] Built target easycl_delete_stamp Scanning dependencies of target cltorch_static [ 6%] Building CXX object CMakeFiles/cltorch_static.dir/src/UserKernel.cpp.o [ 6%] Building C object CMakeFiles/cltorch_static.dir/src/torch/utils.c.o [ 6%] Building CXX object CMakeFiles/cltorch_static.dir/src/init.cpp.o [ 8%] Building CXX object CMakeFiles/cltorch_static.dir/src/Storage.cpp.o [ 9%] Building C object CMakeFiles/cltorch_static.dir/TensorMath.c.o [ 13%] Building C object CMakeFiles/cltorch_static.dir/src/TensorOperator.c.o [ 13%] Building CXX object CMakeFiles/cltorch_static.dir/src/Tensor.cpp.o Submodule path '../src/EasyCL': checked out 'f71af9fa7a9a8b7ea5aea9db278fa74c79ed7805' Submodule path '../src/EasyCL/thirdparty/clew': checked out '1d2752564b6af98d24127cdb2d573d3f9ac98f02' In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/Storage.cpp:2: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THCl.h:9: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:38:10: warning: class 'CLWrapper' was previously declared as a struct [-Wmismatched-tags] THCL_API class CLWrapper THClTensor_wrapper(THClState state, const THClTensor self); ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:8: note: previous use is here struct CLWrapper; ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/Storage.cpp:2: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THCl.h:9: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:140:22: warning: 'THClTensor_toString' has C-linkage specified, but returns user-defined type 'std::string' (aka 'basic_string<char, char_traits, allocator >') which is incompatible with C [-Wreturn-type-c-linkage] THCL_API std::string THClTensor_toString(THClState state, const THClTensor tensor); ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/Tensor.cpp:2: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THCl.h:9: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:38:10: warning: class 'CLWrapper' was previously declared as a struct [-Wmismatched-tags] THCL_API class CLWrapper THClTensor_wrapper(THClState state, const THClTensor self); ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:8: note: previous use is here struct CLWrapper; ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/Tensor.cpp:2: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THCl.h:9: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:140:22: warning: 'THClTensor_toString' has C-linkage specified, but returns user-defined type 'std::string' (aka 'basic_string<char, char_traits, allocator >') which is incompatible with C [-Wreturn-type-c-linkage] THCL_API std::string THClTensor_toString(THClState state, const THClTensor tensor); ^ Submodule path '../src/clMathLibraries/clBLAS': checked out 'bdaf1f9ef3d97168fdaff4c3ef588feeae72b171' In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/Storage.cpp:38: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/torch/generic/Storage.cpp:5: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:50:1: warning: 'EasyCL' defined as a class here but previously declared as a struct [-Wmismatched-tags] class EasyCL_EXPORT EasyCL { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:38:1: note: did you mean class here? struct EasyCL; ^~ class [ 13%] Built target git_cltorch_rec In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/Storage.cpp:38: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/torch/generic/Storage.cpp:5: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:150: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLIntWrapper.h:11: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLWrapper.h:17:1: warning: 'CLWrapper' defined as a class here but previously declared as a struct [-Wmismatched-tags] class EasyCL_EXPORT CLWrapper { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:1: note: did you mean class here? struct CLWrapper; ^~ class Scanning dependencies of target clBLAS-external Scanning dependencies of target EasyCL-external [ 14%] Creating directories for 'clBLAS-external' [ 16%] Creating directories for 'EasyCL-external' In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/UserKernel.cpp:9: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:5:1: warning: class 'THClState' was previously declared as a struct [-Wmismatched-tags] class THClState; ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/torch/utils.h:45:8: note: previous use is here struct THClState; ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/UserKernel.cpp:9: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:10: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:38:1: warning: struct 'EasyCL' was previously declared as a class [-Wmismatched-tags] struct EasyCL; ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:50:21: note: previous use is here class EasyCL_EXPORT EasyCL { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:38:1: note: did you mean class here? struct EasyCL; ^~ class /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:1: warning: struct 'CLWrapper' was previously declared as a class [-Wmismatched-tags] struct CLWrapper; ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLWrapper.h:17:21: note: previous use is here class EasyCL_EXPORT CLWrapper { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:1: note: did you mean class here? struct CLWrapper; ^~ class /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:52:9: warning: 'THClState' defined as a struct here but previously declared as a class [-Wmismatched-tags] typedef struct THClState ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:5:1: note: did you mean struct here? class THClState; ^~~~~ struct In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/UserKernel.cpp:9: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:11: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduceApplyUtils.h:10: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:12:9: warning: 'THClTensor' defined as a struct here but previously declared as a class [-Wmismatched-tags] typedef struct THClTensor ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:7:1: note: did you mean struct here? class THClTensor; ^~~~~ struct In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/UserKernel.cpp:9: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:11: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduceApplyUtils.h:10: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:140:22: warning: 'THClTensor_toString' has C-linkage specified, but returns user-defined type 'std::string' (aka 'basic_string<char, char_traits, allocator >') which is incompatible with C [-Wreturn-type-c-linkage] THCL_API std::string THClTensor_toString(THClState state, const THClTensor tensor); ^ [ 18%] No download step for 'EasyCL-external' [ 19%] No download step for 'clBLAS-external' In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/init.cpp:24: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:38:1: warning: struct 'EasyCL' was previously declared as a class [-Wmismatched-tags] struct EasyCL; ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:50:21: note: previous use is here class EasyCL_EXPORT EasyCL { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:38:1: note: did you mean class here? struct EasyCL; ^~ class /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:1: warning: struct 'CLWrapper' was previously declared as a class [-Wmismatched-tags] struct CLWrapper; ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLWrapper.h:17:21: note: previous use is here class EasyCL_EXPORT CLWrapper { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:1: note: did you mean class here? struct CLWrapper; ^~ class [ 24%] No patch step for 'clBLAS-external' [ 24%] No patch step for 'EasyCL-external' [ 24%] No update step for 'clBLAS-external' [ 26%] Performing configure step for 'clBLAS-external' [ 27%] No update step for 'EasyCL-external' loading initial cache file /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/build/clBLAS/tmp/clBLAS-external-cache-RelWithDebInfo.cmake [ 29%] Performing configure step for 'EasyCL-external' loading initial cache file /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/build/EasyCL/tmp/EasyCL-external-cache-RelWithDebInfo.cmake 2 warnings generated. 4 warnings generated. -- The C compiler identification is AppleClang 6.1.0.6020053 -- The C compiler identification is AppleClang 6.1.0.6020053 2 warnings generated. -- The CXX compiler identification is AppleClang 6.1.0.6020053 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- The CXX compiler identification is AppleClang 6.1.0.6020053 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features 6 warnings generated. -- Detecting C compile features - done -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info [ 31%] Linking CXX static library libcltorch.a [ 31%] Built target cltorch_static -- Detecting CXX compiler ABI info - done -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting CXX compile features - done -- Target platform: 64-bit -- Found OPENCL: /Users/kingfengji/torch/install/lib/libclew.dylib
-- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:549 ] _boost_TEST_VERSIONS = 1.44.0;1.44;1.47.0;1.47;1.58.0;1.58;1.57.0;1.57;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33 -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:551 ] Boost_USE_MULTITHREADED = ON -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:553 ] Boost_USE_STATIC_LIBS = ON -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:555 ] Boost_USE_STATIC_RUNTIME = -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:557 ] Boost_ADDITIONAL_VERSIONS = 1.44.0;1.44;1.47.0;1.47 -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:559 ] Boost_NO_SYSTEM_PATHS = -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:611 ] Declared as CMake or Environmental Variables: -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:613 ] BOOST_ROOT = -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:615 ] BOOST_INCLUDEDIR = -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:617 ] BOOST_LIBRARYDIR = -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:619 ] _boost_TEST_VERSIONS = 1.44.0;1.44;1.47.0;1.47;1.58.0;1.58;1.57.0;1.57;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33 -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:688 ] Include debugging info: -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:690 ] _boost_INCLUDE_SEARCH_DIRS = PATHS;C:/boost/include;C:/boost;/sw/local/include -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:692 ] _boost_PATH_SUFFIXES = boost-1_44_0;boost_1_44_0;boost/boost-1_44_0;boost/boost_1_44_0;boost-1_44;boost_1_44;boost/boost-1_44;boost/boost_1_44;boost-1_47_0;boost_1_47_0;boost/boost-1_47_0;boost/boost_1_47_0;boost-1_47;boost_1_47;boost/boost-1_47;boost/boost_1_47;boost-1_58_0;boost_1_58_0;boost/boost-1_58_0;boost/boost_1_58_0;boost-1_58;boost_1_58;boost/boost-1_58;boost/boost_1_58;boost-1_57_0;boost_1_57_0;boost/boost-1_57_0;boost/boost_1_57_0;boost-1_57;boost_1_57;boost/boost-1_57;boost/boost_1_57;boost-1_56_0;boost_1_56_0;boost/boost-1_56_0;boost/boost_1_56_0;boost-1_56;boost_1_56;boost/boost-1_56;boost/boost_1_56;boost-1_55_0;boost_1_55_0;boost/boost-1_55_0;boost/boost_1_55_0;boost-1_55;boost_1_55;boost/boost-1_55;boost/boost_1_55;boost-1_54_0;boost_1_54_0;boost/boost-1_54_0;boost/boost_1_54_0;boost-1_54;boost_1_54;boost/boost-1_54;boost/boost_1_54;boost-1_53_0;boost_1_53_0;boost/boost-1_53_0;boost/boost_1_53_0;boost-1_53;boost_1_53;boost/boost-1_53;boost/boost_1_53;boost-1_52_0;boost_1_52_0;boost/boost-1_52_0;boost/boost_1_52_0;boost-1_52;boost_1_52;boost/boost-1_52;boost/boost_1_52;boost-1_51_0;boost_1_51_0;boost/boost-1_51_0;boost/boost_1_51_0;boost-1_51;boost_1_51;boost/boost-1_51;boost/boost_1_51;boost-1_50_0;boost_1_50_0;boost/boost-1_50_0;boost/boost_1_50_0;boost-1_50;boost_1_50;boost/boost-1_50;boost/boost_1_50;boost-1_49_0;boost_1_49_0;boost/boost-1_49_0;boost/boost_1_49_0;boost-1_49;boost_1_49;boost/boost-1_49;boost/boost_1_49;boost-1_48_0;boost_1_48_0;boost/boost-1_48_0;boost/boost_1_48_0;boost-1_48;boost_1_48;boost/boost-1_48;boost/boost_1_48;boost-1_47_0;boost_1_47_0;boost/boost-1_47_0;boost/boost_1_47_0;boost-1_47;boost_1_47;boost/boost-1_47;boost/boost_1_47;boost-1_46_1;boost_1_46_1;boost/boost-1_46_1;boost/boost_1_46_1;boost-1_46_0;boost_1_46_0;boost/boost-1_46_0;boost/boost_1_46_0;boost-1_46;boost_1_46;boost/boost-1_46;boost/boost_1_46;boost-1_45_0;boost_1_45_0;boost/boost-1_45_0;boost/boost_1_45_0;boost-1_45;boost_1_45;boost/boost-1_45;boost/boost_1_45;boost-1_44_0;boost_1_44_0;boost/boost-1_44_0;boost/boost_1_44_0;boost-1_44;boost_1_44;boost/boost-1_44;boost/boost_1_44;boost-1_43_0;boost_1_43_0;boost/boost-1_43_0;boost/boost_1_43_0;boost-1_43;boost_1_43;boost/boost-1_43;boost/boost_1_43;boost-1_42_0;boost_1_42_0;boost/boost-1_42_0;boost/boost_1_42_0;boost-1_42;boost_1_42;boost/boost-1_42;boost/boost_1_42;boost-1_41_0;boost_1_41_0;boost/boost-1_41_0;boost/boost_1_41_0;boost-1_41;boost_1_41;boost/boost-1_41;boost/boost_1_41;boost-1_40_0;boost_1_40_0;boost/boost-1_40_0;boost/boost_1_40_0;boost-1_40;boost_1_40;boost/boost-1_40;boost/boost_1_40;boost-1_39_0;boost_1_39_0;boost/boost-1_39_0;boost/boost_1_39_0;boost-1_39;boost_1_39;boost/boost-1_39;boost/boost_1_39;boost-1_38_0;boost_1_38_0;boost/boost-1_38_0;boost/boost_1_38_0;boost-1_38;boost_1_38;boost/boost-1_38;boost/boost_1_38;boost-1_37_0;boost_1_37_0;boost/boost-1_37_0;boost/boost_1_37_0;boost-1_37;boost_1_37;boost/boost-1_37;boost/boost_1_37;boost-1_36_1;boost_1_36_1;boost/boost-1_36_1;boost/boost_1_36_1;boost-1_36_0;boost_1_36_0;boost/boost-1_36_0;boost/boost_1_36_0;boost-1_36;boost_1_36;boost/boost-1_36;boost/boost_1_36;boost-1_35_1;boost_1_35_1;boost/boost-1_35_1;boost/boost_1_35_1;boost-1_35_0;boost_1_35_0;boost/boost-1_35_0;boost/boost_1_35_0;boost-1_35;boost_1_35;boost/boost-1_35;boost/boost_1_35;boost-1_34_1;boost_1_34_1;boost/boost-1_34_1;boost/boost_1_34_1;boost-1_34_0;boost_1_34_0;boost/boost-1_34_0;boost/boost_1_34_0;boost-1_34;boost_1_34;boost/boost-1_34;boost/boost_1_34;boost-1_33_1;boost_1_33_1;boost/boost-1_33_1;boost/boost_1_33_1;boost-1_33_0;boost_1_33_0;boost/boost-1_33_0;boost/boost_1_33_0;boost-1_33;boost_1_33;boost/boost-1_33;boost/boost_1_33 -- Configuring done CMake Warning (dev): Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake --help-policy CMP0042" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

MACOSX_RPATH is not specified for the following targets:

EasyCL

This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done -- Build files have been written to: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/build/EasyCL/src/EasyCL-external-build [ 32%] Performing build step for 'EasyCL-external' Scanning dependencies of target clew_delete_stamp [ 0%] Built target clew_delete_stamp Scanning dependencies of target clew-external -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:822 ] guessed _boost_COMPILER = -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:832 ] _boost_MULTITHREADED = -mt -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:875 ] _boost_RELEASE_ABI_TAG = - -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:877 ] _boost_DEBUG_ABI_TAG = -d -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:931 ] _boost_LIBRARY_SEARCH_DIRS_RELEASE = Boost_INCLUDE_DIR-NOTFOUND/lib;Boost_INCLUDE_DIR-NOTFOUND/../lib;Boost_INCLUDE_DIR-NOTFOUND/stage/lib;PATHS;C:/boost/lib;C:/boost;/sw/local/lib_boost_LIBRARY_SEARCH_DIRS_DEBUG = Boost_INCLUDE_DIR-NOTFOUND/lib;Boost_INCLUDE_DIR-NOTFOUND/../lib;Boost_INCLUDE_DIR-NOTFOUND/stage/lib;PATHS;C:/boost/lib;C:/boost;/sw/local/lib -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:1043 ] Searching for PROGRAM_OPTIONS_LIBRARY_RELEASE: boost_program_options-mt-;boost_program_options-mt;boost_program_options-mt-;boost_program_options-mt;boost_program_options [ 4%] Creating directories for 'clew-external' -- [ /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/FindBoost.cmake:1085 ] Searching for PROGRAM_OPTIONS_LIBRARY_DEBUG: boost_program_options-mt-d-;boost_program_options-mt-d;boost_program_options-mt-d-;boost_program_options-mt-d;boost_program_options-mt;boost_program_options -- Could NOT find Boost Unable to find the Boost header files. Please set BOOST_ROOT to the root directory containing Boost or BOOST_INCLUDEDIR to the directory containing Boost's headers. -- Boost_PROGRAM_OPTIONS_LIBRARY: -- The clBLAS ktest requires boost to be installed -- The clBLAS client requires boost to be installed [ 8%] No download step for 'clew-external' [ 16%] No update step for 'clew-external' [ 16%] No patch step for 'clew-external' -- Configuring done [ 20%] Performing configure step for 'clew-external' loading initial cache file /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/build/EasyCL/src/EasyCL-external-build/clew/tmp/clew-external-cache-RelWithDebInfo.cmake CMake Warning (dev): Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake --help-policy CMP0042" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

MACOSX_RPATH is not specified for the following targets:

clBLAS

This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done -- The C compiler identification is AppleClang 6.1.0.6020053 -- Build files have been written to: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/build/clBLAS/src/clBLAS-external-build [ 34%] Performing build step for 'clBLAS-external' -- The CXX compiler identification is AppleClang 6.1.0.6020053 Scanning dependencies of target tplgen -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc [ 0%] Creating directories for 'tplgen' [ 1%] Performing download step (DIR copy) for 'tplgen' -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info [ 1%] No update step for 'tplgen' [ 2%] No patch step for 'tplgen' [ 2%] Performing configure step for 'tplgen' -- Detecting C compiler ABI info - done -- Detecting C compile features -- The C compiler identification is AppleClang 6.1.0.6020053 -- The CXX compiler identification is AppleClang 6.1.0.6020053 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Detecting C compiler ABI info - done -- Detecting C compile features -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Project source dir = /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/thirdparty/clew -- Project build dir = /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/build/EasyCL/src/EasyCL-external-build/clew/src/clew-external-build -- Configuring done CMake Warning (dev): Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake --help-policy CMP0042" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

MACOSX_RPATH is not specified for the following targets:

clew

This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done -- Build files have been written to: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/build/EasyCL/src/EasyCL-external-build/clew/src/clew-external-build [ 24%] Performing build step for 'clew-external' Scanning dependencies of target clew [ 50%] Building C object src/CMakeFiles/clew.dir/clew.c.o [100%] Linking C shared library libclew.dylib [100%] Built target clew [ 28%] Performing install step for 'clew-external' [100%] Built target clew Install the project... -- Install configuration: "RelWithDebInfo" -- Installing: /Users/kingfengji/torch/install/lib/libclew.1.0.0.dylib -- Up-to-date: /Users/kingfengji/torch/install/lib/libclew.dylib -- Installing: /Users/kingfengji/torch/install/include/clew.h -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/build/clBLAS/src/clBLAS-external-build/library/tplgen-prefix/src/tplgen-build [ 32%] Completed 'clew-external' [ 2%] Performing build step for 'tplgen' [ 32%] Built target clew-external Scanning dependencies of target gpuinfo Scanning dependencies of target EasyCL Scanning dependencies of target tplgen [ 50%] Building CXX object CMakeFiles/tplgen.dir/tplgen.cpp.o [ 36%] Building CXX object CMakeFiles/gpuinfo.dir/deviceinfo_helper.cpp.o [ 44%] Building CXX object CMakeFiles/gpuinfo.dir/gpuinfo.cpp.o [ 44%] Building CXX object CMakeFiles/gpuinfo.dir/DeviceInfo.cpp.o [ 48%] Building CXX object CMakeFiles/gpuinfo.dir/platforminfo_helper.cpp.o [ 52%] Building CXX object CMakeFiles/EasyCL.dir/EasyCL.cpp.o [ 56%] Building CXX object CMakeFiles/EasyCL.dir/CLKernel.cpp.o [ 60%] Building CXX object CMakeFiles/EasyCL.dir/CLWrapper.cpp.o [100%] Linking CXX executable tplgen [100%] Built target tplgen [ 3%] No install step for 'tplgen' [ 3%] Completed 'tplgen' [ 64%] Building CXX object CMakeFiles/EasyCL.dir/platforminfo_helper.cpp.o [ 3%] Built target tplgen Scanning dependencies of target GENERATE_CLT TPLGEN Running..... Processing gemm.cl Processing gemm_helper.cl Processing gbmv.cl Processing ger.cl Processing her.cl Processing symm_helper.cl Processing syr2_her2.cl Processing syr_her.cl Processing trsv.cl Processing her2.cl Processing symm.cl Processing syr2.cl Processing syr.cl Processing trmv.cl Processing trsv_gemv.cl Processing swap.cl Processing scal.cl Processing copy.cl Processing axpy.cl Processing dot.cl Processing reduction.cl Processing rotg.cl Processing rotmg.cl Processing rotm.cl Processing iamax.cl Processing nrm2.cl Processing asum.cl [ 3%] Built target GENERATE_CLT Scanning dependencies of target clBLAS [ 68%] Building CXX object CMakeFiles/EasyCL.dir/deviceinfo_helper.cpp.o [ 72%] Building CXX object CMakeFiles/EasyCL.dir/DevicesInfo.cpp.o Scanning dependencies of target tune [ 3%] Building C object library/CMakeFiles/clBLAS.dir/common/list.c.o [ 76%] Linking CXX executable gpuinfo [ 3%] Building C object library/CMakeFiles/clBLAS.dir/common/clkern.c.o [ 76%] Built target gpuinfo [ 80%] Building CXX object CMakeFiles/EasyCL.dir/DeviceInfo.cpp.o [ 4%] Building C object library/CMakeFiles/clBLAS.dir/common/kern_cache.c.o [ 5%] Building C object library/tools/tune/CMakeFiles/tune.dir/tune.c.o /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/tools/tune/tune.c:629:13: warning: enumeration value 'TYPE_UNSIGNED_INT' not handled in switch [-Wswitch] switch (mi->dtype) ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/tools/tune/tune.c:1165:17: warning: enumeration value 'TYPE_UNSIGNED_INT' not handled in switch [-Wswitch] switch (bExtra->dtype) ^ [ 5%] Building C object library/CMakeFiles/clBLAS.dir/common/kerngen_core.c.o [ 6%] Building C object library/CMakeFiles/clBLAS.dir/common/kgen_basic.c.o [ 6%] Building C object library/tools/tune/CMakeFiles/tune.dir/toolslib.c.o [ 6%] Building C object library/CMakeFiles/clBLAS.dir/common/kgen_loop_helper.c.o [ 7%] Building C object library/CMakeFiles/clBLAS.dir/common/kgen_guard.c.o [ 84%] Building CXX object CMakeFiles/EasyCL.dir/util/easycl_stringhelper.cpp.o 2 warnings generated. [ 8%] Building C object library/tools/tune/CMakeFiles/tune.dir/fileio.c.o [ 8%] Building C object library/CMakeFiles/clBLAS.dir/common/misc.c.o [ 8%] Building C object library/tools/tune/CMakeFiles/tune.dir/subdim.c.o [ 8%] Building C object library/CMakeFiles/clBLAS.dir/common/devinfo.c.o /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/tools/tune/subdim.c:48:13: warning: enumeration value 'TYPE_UNSIGNED_INT' not handled in switch [-Wswitch] switch (dataType) { ^ [ 88%] Building CXX object CMakeFiles/EasyCL.dir/util/StatefulTimer.cpp.o [ 9%] Building C object library/CMakeFiles/clBLAS.dir/common/devinfo-cache.c.o [ 92%] Building CXX object CMakeFiles/EasyCL.dir/templates/LuaTemplater.cpp.o [ 10%] Building C object library/tools/tune/CMakeFiles/tune.dir/storage_data.c.o 1 warning generated. [ 10%] Building C object library/CMakeFiles/clBLAS.dir/common/mutex.c.o [ 10%] Building C object library/tools/tune/CMakeFiles/tune.dir/storage_init.c.o [ 11%] Building C object library/CMakeFiles/clBLAS.dir/common/trace_malloc.c.o [ 11%] Building C object library/tools/tune/CMakeFiles/tune.dir/storage_io.c.o [ 12%] Building C object library/tools/tune/CMakeFiles/tune.dir/dimension.c.o [ 96%] Building CXX object CMakeFiles/EasyCL.dir/templates/TemplatedKernel.cpp.o [ 12%] Building C object library/CMakeFiles/clBLAS.dir/common/gens/dblock_kgen.c.o [ 13%] Building C object library/CMakeFiles/clBLAS.dir/blas/init.c.o /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/tools/tune/dimension.c:85:13: warning: enumeration value 'TYPE_UNSIGNED_INT' not handled in switch [-Wswitch] switch (dt) { ^ 1 warning generated. [ 13%] Building C object library/CMakeFiles/clBLAS.dir/blas/impl.c.o [ 13%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/generic/common.c.o [ 14%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/generic/blas_funcs.c.o [ 15%] Building C object library/CMakeFiles/clBLAS.dir/blas/scimage.c.o [ 15%] Building C object library/CMakeFiles/clBLAS.dir/blas/xgemv.c.o [ 15%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/init.c.o [ 15%] Building C object library/CMakeFiles/clBLAS.dir/blas/xsymv.c.o [ 16%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/impl.c.o [ 16%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/scimage.c.o [ 17%] Building C object library/CMakeFiles/clBLAS.dir/blas/xgemm.c.o [ 17%] Building C object library/CMakeFiles/clBLAS.dir/blas/xtrmm.c.o /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/xgemm.c:171:5: warning: implicitly declaring library function 'sprintf' with type 'int (char , const char , ...)' sprintf(tmp, "// micro tile size is 4 x 4 \n"); ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/xgemm.c:171:5: note: include the header or explicitly provide a declaration for 'sprintf' [ 18%] Building C object library/CMakeFiles/clBLAS.dir/blas/xtrsm.c.o [ 19%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/generic/events.c.o [ 19%] Building C object library/CMakeFiles/clBLAS.dir/blas/xsyrk.c.o [ 19%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/generic/matrix_props.c.o [ 20%] Building C object library/CMakeFiles/clBLAS.dir/blas/xsyr2k.c.o 1 warning generated. [ 20%] Building C object library/CMakeFiles/clBLAS.dir/blas/xtrmv.c.o [ 20%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/generic/matrix_dims.c.o [ 21%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/tile.c.o [ 22%] Building C object library/CMakeFiles/clBLAS.dir/blas/xtrsv.c.o [ 22%] Building C object library/CMakeFiles/clBLAS.dir/blas/xsymm.c.o [ 22%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/tile_iter.c.o [ 22%] Building C object library/CMakeFiles/clBLAS.dir/blas/xgemm2.c.o [ 23%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/blas_subgroup.c.o /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/xsymm.c:238:16: warning: enumeration value 'TYPE_UNSIGNED_INT' not handled in switch [-Wswitch] switch(kargs->dtype) ^ 1 warning generated. [ 23%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/decomposition.c.o /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/gens/blas_subgroup.c:89:12: warning: enumeration value 'TYPE_UNSIGNED_INT' not handled in switch [-Wswitch] switch(dtype){ ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/gens/blas_subgroup.c:194:12: warning: enumeration value 'TYPE_UNSIGNED_INT' not handled in switch [-Wswitch] switch(dtype){ ^ [ 24%] Building C object library/CMakeFiles/clBLAS.dir/blas/xger.c.o [ 24%] Building C object library/CMakeFiles/clBLAS.dir/blas/xsyr.c.o [ 25%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/blas_kgen.c.o [ 25%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/gen_helper.c.o [ 26%] Building C object library/CMakeFiles/clBLAS.dir/blas/xsyr2.c.o 2 warnings generated. [ 26%] Building C object library/CMakeFiles/clBLAS.dir/blas/xher.c.o [100%] Linking CXX shared library libEasyCL.dylib [ 27%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/tilemul.c.o [ 28%] Building C object library/CMakeFiles/clBLAS.dir/blas/xher2.c.o [ 28%] Building C object library/CMakeFiles/clBLAS.dir/blas/xhemv.c.o [ 28%] Building C object library/CMakeFiles/clBLAS.dir/blas/xhemm.c.o [100%] Built target EasyCL [ 29%] Building C object library/CMakeFiles/clBLAS.dir/blas/xherk.c.o [ 36%] Performing install step for 'EasyCL-external' [ 29%] Building C object library/CMakeFiles/clBLAS.dir/blas/xhpmv.c.o [ 29%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/fetch.c.o [ 29%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/gen_init.c.o [ 30%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/gemv.c.o [ 0%] Built target clew_delete_stamp [ 30%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/symv.c.o [ 4%] Creating directories for 'clew-external' [ 31%] Building C object library/CMakeFiles/clBLAS.dir/blas/xspmv.c.o [ 8%] No download step for 'clew-external' [ 31%] Building C object library/CMakeFiles/clBLAS.dir/blas/xgbmv.c.o [ 32%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/gemm.c.o [ 12%] No patch step for 'clew-external' [ 32%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/trmm.c.o [ 33%] Building C object library/CMakeFiles/clBLAS.dir/blas/xtbmv.c.o [ 16%] No update step for 'clew-external' [ 20%] Performing configure step for 'clew-external' [ 33%] Building C object library/CMakeFiles/clBLAS.dir/blas/xshbmv.c.o /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/gens/trmm.c:1248:5: warning: cast to 'void ' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast](void)subdimsNum; ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/gens/trmm.c:1248:5: warning: expression result unused; should this cast be to 'void'? -Wunused-valuesubdimsNum; ^ ~ loading initial cache file /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/build/EasyCL/src/EasyCL-external-build/clew/tmp/clew-external-cache-RelWithDebInfo.cmake [ 34%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/trsm.c.o -- Project source dir = /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/thirdparty/clew -- Project build dir = /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/build/EasyCL/src/EasyCL-external-build/clew/src/clew-external-build -- Configuring done CMake Warning (dev): Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake --help-policy CMP0042" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

MACOSX_RPATH is not specified for the following targets:

clew

This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done -- Build files have been written to: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/build/EasyCL/src/EasyCL-external-build/clew/src/clew-external-build [ 34%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/syrxk.c.o [ 24%] Performing build step for 'clew-external' [ 35%] Building C object library/CMakeFiles/clBLAS.dir/blas/xtbsv.c.o [ 36%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/trxm_common.c.o 2 warnings generated. [100%] Built target clew [ 36%] Building C object library/CMakeFiles/clBLAS.dir/blas/xher2k.c.o [ 36%] Building C object library/CMakeFiles/clBLAS.dir/blas/xswap.c.o [ 28%] Performing install step for 'clew-external' [ 37%] Building C object library/CMakeFiles/clBLAS.dir/blas/xscal.c.o [100%] Built target clew [ 37%] Building C object library/CMakeFiles/clBLAS.dir/blas/xcopy.c.o [ 37%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/trsm_kgen.c.o [ 38%] Building C object library/CMakeFiles/clBLAS.dir/blas/xaxpy.c.o Install the project... -- Install configuration: "RelWithDebInfo" -- Up-to-date: /Users/kingfengji/torch/install/lib/libclew.1.0.0.dylib -- Up-to-date: /Users/kingfengji/torch/install/lib/libclew.dylib -- Up-to-date: /Users/kingfengji/torch/install/include/clew.h [ 38%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/xxmv_common.c.o [ 39%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/legacy/blas_kgen_legacy.c.o [ 32%] Completed 'clew-external' [ 39%] Building C object library/CMakeFiles/clBLAS.dir/blas/xdot.c.o [ 39%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/legacy/gen_helper_legacy.c.o [ 40%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/legacy/trxm_common_legacy.c.o [ 32%] Built target clew-external [ 41%] Building C object library/CMakeFiles/clBLAS.dir/blas/xrotg.c.o [ 80%] Built target EasyCL [ 84%] Linking CXX executable gpuinfo [ 41%] Building C object library/CMakeFiles/clBLAS.dir/blas/xrotmg.c.o [ 42%] Building C object library/CMakeFiles/clBLAS.dir/blas/xrot.c.o [ 42%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/legacy/trsm_kgen_legacy.c.o [ 42%] Building C object library/CMakeFiles/clBLAS.dir/blas/xrotm.c.o [100%] Built target gpuinfo [ 43%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/legacy/blkmul.c.o Install the project... -- Install configuration: "RelWithDebInfo" -- Installing: /Users/kingfengji/torch/install/lib/libEasyCL.dylib [ 43%] Building C object library/CMakeFiles/clBLAS.dir/blas/ixamax.c.o -- Installing: /Users/kingfengji/torch/install/include/easycl/CLArray.h -- Installing: /Users/kingfengji/torch/install/include/easycl/CLArrayFloat.h -- Installing: /Users/kingfengji/torch/install/include/easycl/CLArrayInt.h -- Installing: /Users/kingfengji/torch/install/include/easycl/CLFloatWrapper.h -- Installing: /Users/kingfengji/torch/install/include/easycl/CLFloatWrapperConst.h -- Installing: /Users/kingfengji/torch/install/include/easycl/CLIntWrapper.h -- Installing: /Users/kingfengji/torch/install/include/easycl/CLKernel.h -- Installing: /Users/kingfengji/torch/install/include/easycl/CLKernel_structs.h -- Installing: /Users/kingfengji/torch/install/include/easycl/CLUCharWrapper.h -- Installing: /Users/kingfengji/torch/install/include/easycl/CLWrapper.h -- Installing: /Users/kingfengji/torch/install/include/easycl/deprecated.h -- Installing: /Users/kingfengji/torch/install/include/easycl/DeviceInfo.h -- Installing: /Users/kingfengji/torch/install/include/easycl/deviceinfo_helper.h -- Installing: /Users/kingfengji/torch/install/include/easycl/DevicesInfo.h -- Installing: /Users/kingfengji/torch/install/include/easycl/EasyCL.h -- Installing: /Users/kingfengji/torch/install/include/easycl/EasyCL_export.h -- Installing: /Users/kingfengji/torch/install/include/easycl/ICLArray.h -- Installing: /Users/kingfengji/torch/install/include/easycl/mystdint.h -- Installing: /Users/kingfengji/torch/install/include/easycl/platforminfo_helper.h -- Installing: /Users/kingfengji/torch/install/include/easycl/templates/LuaTemplater.h -- Installing: /Users/kingfengji/torch/install/include/easycl/templates/TemplatedKernel.h -- Installing: /Users/kingfengji/torch/install/include/easycl/util/easycl_stringhelper.h -- Installing: /Users/kingfengji/torch/install/include/easycl/util/StatefulTimer.h -- Installing: /Users/kingfengji/torch/install/bin/easycl_activate.sh [ 44%] Building C object library/CMakeFiles/clBLAS.dir/blas/xnrm2.c.o [ 37%] Completed 'EasyCL-external' [ 44%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/legacy/gemm_lds.c.o [ 44%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/legacy/gemm_img.c.o [ 45%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/legacy/trmm_lds.c.o [ 45%] Building C object library/CMakeFiles/clBLAS.dir/blas/xasum.c.o [ 37%] Built target EasyCL-external [ 45%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/legacy/trmm_img.c.o [ 46%] Building C object library/CMakeFiles/clBLAS.dir/blas/generic/common.c.o [ 47%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/legacy/trsm_lds.c.o [ 47%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/legacy/trsm_img.c.o [ 47%] Building C object library/CMakeFiles/clBLAS.dir/blas/generic/blas_funcs.c.o [ 48%] Building C object library/CMakeFiles/clBLAS.dir/blas/generic/events.c.o [ 48%] Building C object library/CMakeFiles/clBLAS.dir/blas/generic/matrix_props.c.o [ 48%] Building C object library/CMakeFiles/clBLAS.dir/blas/generic/matrix_dims.c.o [ 49%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/legacy/trsm_cached_lds.c.o [ 49%] Building C object library/tools/tune/CMakeFiles/tune.dir///common/devinfo.c.o [ 50%] Building C object library/tools/tune/CMakeFiles/tune.dir///common/kern_cache.c.o [ 51%] Building C object library/CMakeFiles/clBLAS.dir/blas/generic/kdump.c.o [ 51%] Building C object library/tools/tune/CMakeFiles/tune.dir///common/mutex.c.o [ 51%] Building C object library/CMakeFiles/clBLAS.dir/blas/generic/solution_assert.c.o [ 51%] Building C object library/tools/tune/CMakeFiles/tune.dir///common/list.c.o [ 52%] Building C object library/tools/tune/CMakeFiles/tune.dir///common/kerngen_core.c.o [ 53%] Building C object library/CMakeFiles/clBLAS.dir/blas/generic/solution_seq.c.o [ 53%] Building C object library/tools/tune/CMakeFiles/tune.dir///common/kgen_basic.c.o [ 53%] Building C object library/CMakeFiles/clBLAS.dir/blas/generic/solution_seq_make.c.o [ 54%] Building C object library/tools/tune/CMakeFiles/tune.dir///common/kgen_loop_helper.c.o /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/generic/solution_seq_make.c:2033:13: warning: enumeration value 'TYPE_UNSIGNED_INT' not handled in switch [-Wswitch] switch (kargs->dtype) { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/generic/solution_seq_make.c:2319:13: warning: enumeration value 'TYPE_UNSIGNED_INT' not handled in switch [-Wswitch] switch (kargs->dtype) { ^ [ 55%] Building C object library/CMakeFiles/clBLAS.dir/blas/generic/problem_iter.c.o [ 55%] Building C object library/CMakeFiles/clBLAS.dir/blas/generic/kernel_extra.c.o [ 56%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/gen_init.c.o [ 56%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/blas_kgen.c.o [ 56%] Building C object library/tools/tune/CMakeFiles/tune.dir///common/misc.c.o [ 56%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/blas_subgroup.c.o [ 57%] Building C object library/tools/tune/CMakeFiles/tune.dir///common/kgen_guard.c.o [ 58%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/gen_helper.c.o [ 58%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/tilemul.c.o /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/gens/blas_subgroup.c:89:12: warning: enumeration value 'TYPE_UNSIGNED_INT' not handled in switch [-Wswitch] switch(dtype){ ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/gens/blas_subgroup.c:194:12: warning: enumeration value 'TYPE_UNSIGNED_INT' not handled in switch [-Wswitch] switch(dtype){ ^ [ 58%] Building C object library/tools/tune/CMakeFiles/tune.dir///common/clkern.c.o [ 59%] Building C object library/tools/tune/CMakeFiles/tune.dir///common/trace_malloc.c.o [ 59%] Building C object library/tools/tune/CMakeFiles/tune.dir///common/gens/dblock_kgen.c.o 2 warnings generated. [ 59%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/generic/solution_seq_make.c.o [ 60%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/fetch.c.o [ 60%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/tile.c.o [ 61%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/generic/solution_seq.c.o /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/generic/solution_seq_make.c:2033:13: warning: enumeration value 'TYPE_UNSIGNED_INT' not handled in switch [-Wswitch] switch (kargs->dtype) { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/generic/solution_seq_make.c:2319:13: warning: enumeration value 'TYPE_UNSIGNED_INT' not handled in switch [-Wswitch] switch (kargs->dtype) { ^ [ 61%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/generic/solution_assert.c.o [ 62%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/tile_iter.c.o [ 63%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/generic/problem_iter.c.o [ 63%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/decomposition.c.o [ 63%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/generic/kernel_extra.c.o [ 64%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/gemv.c.o 2 warnings generated. [ 65%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/generic/kdump.c.o [ 65%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/symv.c.o [ 65%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/trmv_reg.cpp.o [ 65%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/ger_lds.cpp.o [ 66%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/trsv_trtri.cpp.o [ 66%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/trsv_gemv.cpp.o [ 67%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/kprintf.cpp.o [ 67%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/syr_lds.cpp.o 2 warnings generated. [ 67%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/gemm.c.o [ 68%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/symm_cached.cpp.o [ 69%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/trmm.c.o /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/gens/trmm.c:1248:5: warning: cast to 'void ' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast](void)subdimsNum; ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/gens/trmm.c:1248:5: warning: expression result unused; should this cast be to 'void'? -Wunused-valuesubdimsNum; ^ ~ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/gens/kprintf.cpp:1827:16: warning: enumeration values 'ATOMIC_FHI' and 'REG_FHI' not handled in switch [-Wswitch] switch(impl) ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/gens/kprintf.cpp:1878:20: warning: enumeration values 'ATOMIC_FHI' and 'REG_FHI' not handled in switch [-Wswitch] switch(impl) ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/gens/kprintf.cpp:1972:15: warning: enumeration values 'ATOMIC_FHI' and 'REG_FHI' not handled in switch [-Wswitch] switch(impl) ^ [ 69%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/trsm.c.o [ 70%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/syrxk.c.o 2 warnings generated. [ 70%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/trxm_common.c.o [ 70%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/gemm_cached.cpp.o [ 71%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/trsm_kgen.c.o [ 71%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/xxmv_common.c.o [ 72%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/gemm_tail_cached.cpp.o [ 72%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/syr2_lds.cpp.o [ 72%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/her_lds.cpp.o [ 73%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/legacy/blas_kgen_legacy.c.o [ 74%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/her2_lds.cpp.o [ 74%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/gbmv.cpp.o [ 74%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/legacy/gen_helper_legacy.c.o [ 74%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/legacy/trxm_common_legacy.c.o [ 75%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/legacy/trsm_kgen_legacy.c.o [ 75%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/legacy/blkmul.c.o [ 76%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/legacy/gemm_lds.c.o [ 77%] Building C object library/tools/tune/CMakeFiles/tune.dir///blas/gens/tuned_numbers.c.o [ 77%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/swap_reg.cpp.o [ 77%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/legacy/gemm_img.c.o [ 78%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/scal_reg.cpp.o [ 79%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/legacy/trmm_lds.c.o [ 79%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/legacy/trmm_img.c.o 3 warnings generated. [ 79%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/legacy/trsm_lds.c.o [ 79%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/copy_reg.cpp.o [ 80%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/legacy/trsm_img.c.o [ 81%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/axpy_reg.cpp.o [ 81%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/legacy/trsm_cached_lds.c.o [ 81%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/dot.cpp.o [ 81%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/reduction.cpp.o [ 82%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/rotg_reg.cpp.o [ 83%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/trmv_reg.cpp.o [ 83%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/ger_lds.cpp.o [ 84%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/trsv_trtri.cpp.o [ 84%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/trsv_gemv.cpp.o [ 85%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/kprintf.cpp.o [ 85%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/syr_lds.cpp.o [ 85%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/her_lds.cpp.o [ 85%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/rotmg_reg.cpp.o [ 86%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/rotm_reg.cpp.o [ 86%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/iamax.cpp.o /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/gens/kprintf.cpp:1827:16: warning: enumeration values 'ATOMIC_FHI' and 'REG_FHI' not handled in switch [-Wswitch] switch(impl) ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/gens/kprintf.cpp:1878:20: warning: enumeration values 'ATOMIC_FHI' and 'REG_FHI' not handled in switch [-Wswitch] switch(impl) ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/blas/gens/kprintf.cpp:1972:15: warning: enumeration values 'ATOMIC_FHI' and 'REG_FHI' not handled in switch [-Wswitch] switch(impl) ^ [ 87%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/nrm2.cpp.o [ 87%] Building CXX object library/tools/tune/CMakeFiles/tune.dir///blas/gens/asum.cpp.o [ 88%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/syr2_lds.cpp.o [ 88%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/her2_lds.cpp.o [ 89%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/symm_cached.cpp.o [ 89%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/gemm_cached.cpp.o [ 90%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/gemm_tail_cached.cpp.o [ 90%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/gbmv.cpp.o [ 91%] Linking CXX executable ../../../staging/clBLAS-tune [ 91%] Built target tune [ 92%] Building C object library/CMakeFiles/clBLAS.dir/blas/gens/tuned_numbers.c.o [ 92%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/swap_reg.cpp.o [ 92%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/scal_reg.cpp.o [ 93%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/copy_reg.cpp.o [ 93%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/axpy_reg.cpp.o [ 94%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/dot.cpp.o [ 94%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/reduction.cpp.o 3 warnings generated. [ 95%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/rotg_reg.cpp.o [ 95%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/rotmg_reg.cpp.o [ 95%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/rotm_reg.cpp.o [ 96%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/iamax.cpp.o [ 96%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/nrm2.cpp.o [ 97%] Building CXX object library/CMakeFiles/clBLAS.dir/blas/gens/asum.cpp.o [ 97%] Building C object library/CMakeFiles/clBLAS.dir/tools/tune/toolslib.c.o [ 98%] Building C object library/CMakeFiles/clBLAS.dir/tools/tune/fileio.c.o [ 98%] Building C object library/CMakeFiles/clBLAS.dir/tools/tune/dimension.c.o /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/clMathLibraries/clBLAS/src/library/tools/tune/dimension.c:85:13: warning: enumeration value 'TYPE_UNSIGNED_INT' not handled in switch [-Wswitch] switch (dt) { ^ [ 99%] Building C object library/CMakeFiles/clBLAS.dir/tools/tune/storage_init.c.o 1 warning generated. [ 99%] Building C object library/CMakeFiles/clBLAS.dir/tools/tune/storage_io.c.o [ 99%] Building C object library/CMakeFiles/clBLAS.dir/tools/tune/storage_data.c.o [100%] Linking CXX shared library libclBLAS.dylib [100%] Built target clBLAS [ 39%] Performing install step for 'clBLAS-external' [ 3%] Built target tplgen TPLGEN Running..... [ 3%] Built target GENERATE_CLT [ 44%] Built target tune [100%] Built target clBLAS Install the project... -- Install configuration: "RelWithDebInfo" -- Installing: /Users/kingfengji/torch/install/./include/clBLAS.h -- Installing: /Users/kingfengji/torch/install/./include/clAmdBlas.h -- Installing: /Users/kingfengji/torch/install/./include/clAmdBlas.version.h -- Installing: /Users/kingfengji/torch/install/./include/clBLAS-complex.h -- Installing: /Users/kingfengji/torch/install/./include/clBLAS.version.h -- Installing: /Users/kingfengji/torch/install/share/clBLAS/clBLASTargets.cmake -- Installing: /Users/kingfengji/torch/install/share/clBLAS/clBLASTargets-relwithdebinfo.cmake -- Installing: /Users/kingfengji/torch/install/share/clBLAS/clBLASConfigVersion.cmake -- Installing: /Users/kingfengji/torch/install/share/clBLAS/clBLASConfig.cmake -- Installing: /Users/kingfengji/torch/install/lib/libclBLAS.2.4.0.dylib -- Up-to-date: /Users/kingfengji/torch/install/lib/libclBLAS.2.dylib -- Up-to-date: /Users/kingfengji/torch/install/lib/libclBLAS.dylib -- Installing: /Users/kingfengji/torch/install/bin/clBLAS-tune [ 40%] Completed 'clBLAS-external' [ 40%] Built target clBLAS-external Scanning dependencies of target THCl [ 45%] Building CXX object src/lib/CMakeFiles/THCl.dir/THClTensor.cpp.o [ 45%] Building CXX object src/lib/CMakeFiles/THCl.dir/THClTensorMath.cpp.o [ 45%] Building CXX object src/lib/CMakeFiles/THCl.dir/THClGeneral.cpp.o [ 49%] Building CXX object src/lib/CMakeFiles/THCl.dir/THClStorageCopy.cpp.o [ 49%] Building CXX object src/lib/CMakeFiles/THCl.dir/THClTensorMathPointwise.cpp.o [ 50%] Building CXX object src/lib/CMakeFiles/THCl.dir/THClStorage.cpp.o [ 52%] Building CXX object src/lib/CMakeFiles/THCl.dir/THClTensorCopy.cpp.o [ 54%] Building CXX object src/lib/CMakeFiles/THCl.dir/THClReduceApplyUtils.cpp.o In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClStorage.cpp:4: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:5:1: warning: class 'THClState' was previously declared as a struct [-Wmismatched-tags] class THClState; ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:52:16: note: previous use is here typedef struct THClState ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:5:1: note: did you mean struct here? class THClState; ^~~~~ struct /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:8:1: warning: class 'CLWrapper' was previously declared as a struct [-Wmismatched-tags] class CLWrapper; ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:8: note: previous use is here struct CLWrapper; ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduceApplyUtils.cpp:1: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduceApplyUtils.h:10: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:38:10: warning: class 'CLWrapper' was previously declared as a struct [-Wmismatched-tags] THCL_API class CLWrapper THClTensor_wrapper(THClState state, const THClTensor self); ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:8: note: previous use is here struct CLWrapper; ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduceApplyUtils.cpp:1: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduceApplyUtils.h:10: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:140:22: warning: 'THClTensor_toString' has C-linkage specified, but returns user-defined type 'std::string' (aka 'basic_string<char, char_traits, allocator >') which is incompatible with C [-Wreturn-type-c-linkage] THCL_API std::string THClTensor_toString(THClState state, const THClTensor tensor); ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.cpp:3: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:38:10: warning: class 'CLWrapper' was previously declared as a struct [-Wmismatched-tags] THCL_API class CLWrapper THClTensor_wrapper(THClState state, const THClTensor self); ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:8: note: previous use is here struct CLWrapper; ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.cpp:3: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:140:22: warning: 'THClTensor_toString' has C-linkage specified, but returns user-defined type 'std::string' (aka 'basic_string<char, char_traits, allocator >') which is incompatible with C [-Wreturn-type-c-linkage] THCL_API std::string THClTensor_toString(THClState state, const THClTensor tensor); ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorMath.cpp:2: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorMath.h:4: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:38:10: warning: class 'CLWrapper' was previously declared as a struct [-Wmismatched-tags] THCL_API class CLWrapper THClTensor_wrapper(THClState state, const THClTensor self); ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:8: note: previous use is here struct CLWrapper; ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorMathPointwise.cpp:1: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorMath.h:4: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:38:10: warning: class 'CLWrapper' was previously declared as a struct [-Wmismatched-tags] THCL_API class CLWrapper THClTensor_wrapper(THClState state, const THClTensor self); ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:8: note: previous use is here struct CLWrapper; ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorMathPointwise.cpp:1: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorMath.h:4: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:140:22: warning: 'THClTensor_toString' has C-linkage specified, but returns user-defined type 'std::string' (aka 'basic_string<char, char_traits, allocator >') which is incompatible with C [-Wreturn-type-c-linkage] THCL_API std::string THClTensor_toString(THClState state, const THClTensor tensor); ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorMath.cpp:2: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorMath.h:4: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:140:22: warning: 'THClTensor_toString' has C-linkage specified, but returns user-defined type 'std::string' (aka 'basic_string<char, char_traits, allocator >') which is incompatible with C [-Wreturn-type-c-linkage] THCL_API std::string THClTensor_toString(THClState state, const THClTensor tensor); ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduceApplyUtils.cpp:1: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduceApplyUtils.h:32:1: warning: class 'CLWrapper' was previously declared as a struct [-Wmismatched-tags] class CLWrapper; ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:8: note: previous use is here struct CLWrapper; ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClStorage.cpp:4: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:11: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduceApplyUtils.h:10: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:12:9: warning: 'THClTensor' defined as a struct here but previously declared as a class [-Wmismatched-tags] typedef struct THClTensor ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:7:1: note: did you mean struct here? class THClTensor; ^~~~~ struct In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClStorage.cpp:4: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:11: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduceApplyUtils.h:10: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:140:22: warning: 'THClTensor_toString' has C-linkage specified, but returns user-defined type 'std::string' (aka 'basic_string<char, char_traits, allocator >') which is incompatible with C [-Wreturn-type-c-linkage] THCL_API std::string THClTensor_toString(THClState state, const THClTensor tensor); ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorCopy.cpp:4: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClApply.h:5: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:38:10: warning: class 'CLWrapper' was previously declared as a struct [-Wmismatched-tags] THCL_API class CLWrapper THClTensor_wrapper(THClState state, const THClTensor self); ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:8: note: previous use is here struct CLWrapper; ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorCopy.cpp:4: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClApply.h:5: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:140:22: warning: 'THClTensor_toString' has C-linkage specified, but returns user-defined type 'std::string' (aka 'basic_string<char, char_traits, allocator >') which is incompatible with C [-Wreturn-type-c-linkage] THCL_API std::string THClTensor_toString(THClState state, const THClTensor *tensor); ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorMathPointwise.cpp:6: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClApply.h:7: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduceApplyUtils.h:32:1: warning: class 'CLWrapper' was previously declared as a struct [-Wmismatched-tags] class CLWrapper; ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:8: note: previous use is here struct CLWrapper; ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorMath.cpp:7: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClApply.h:7: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduceApplyUtils.h:32:1: warning: class 'CLWrapper' was previously declared as a struct [-Wmismatched-tags] class CLWrapper; ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:8: note: previous use is here struct CLWrapper; ^ 3 warnings generated. In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorMath.cpp:8: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduce.h:10: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/templates/TemplatedKernel.h:12:1: warning: class 'EasyCL' was previously declared as a struct [-Wmismatched-tags] class EasyCL; ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:38:8: note: previous use is here struct EasyCL; ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorCopy.cpp:4: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClApply.h:7: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduceApplyUtils.h:32:1: warning: class 'CLWrapper' was previously declared as a struct [-Wmismatched-tags] class CLWrapper; ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:8: note: previous use is here struct CLWrapper; ^ In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClStorageCopy.cpp:7: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:50:1: warning: 'EasyCL' defined as a class here but previously declared as a struct [-Wmismatched-tags] class EasyCL_EXPORT EasyCL { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:38:1: note: did you mean class here? struct EasyCL; ^~ class [ 55%] Building CXX object src/lib/CMakeFiles/THCl.dir/THClApply.cpp.o In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClStorageCopy.cpp:7: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:150: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLIntWrapper.h:11: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLWrapper.h:17:1: warning: 'CLWrapper' defined as a class here but previously declared as a struct [-Wmismatched-tags] class EasyCL_EXPORT CLWrapper { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:1: note: did you mean class here? struct CLWrapper; ^~ class In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClStorage.cpp:6: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:50:1: warning: 'EasyCL' defined as a class here but previously declared as a struct [-Wmismatched-tags] class EasyCL_EXPORT EasyCL { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:38:1: note: did you mean class here? struct EasyCL; ^~ class In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorMath.cpp:8: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduce.h:12: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:50:1: warning: 'EasyCL' defined as a class here but previously declared as a struct [-Wmismatched-tags] class EasyCL_EXPORT EasyCL { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:38:1: note: did you mean class here? struct EasyCL; ^~ class In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.cpp:5: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:50:1: warning: 'EasyCL' defined as a class here but previously declared as a struct [-Wmismatched-tags] class EasyCL_EXPORT EasyCL { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:38:1: note: did you mean class here? struct EasyCL; ^~ class In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClStorage.cpp:6: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:150: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLIntWrapper.h:11: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLWrapper.h:17:1: warning: 'CLWrapper' defined as a class here but previously declared as a struct [-Wmismatched-tags] class EasyCL_EXPORT CLWrapper { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:1: note: did you mean class here? struct CLWrapper; ^~ class In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorMath.cpp:8: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduce.h:12: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:150: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLIntWrapper.h:11: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLWrapper.h:17:1: warning: 'CLWrapper' defined as a class here but previously declared as a struct [-Wmismatched-tags] class EasyCL_EXPORT CLWrapper { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:1: note: did you mean class here? struct CLWrapper; ^~ class In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.cpp:5: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:150: In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLIntWrapper.h:11: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLWrapper.h:17:1: warning: 'CLWrapper' defined as a class here but previously declared as a struct [-Wmismatched-tags] class EasyCL_EXPORT CLWrapper { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:1: note: did you mean class here? struct CLWrapper; ^~ class In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorCopy.cpp:10: /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:50:1: warning: 'EasyCL' defined as a class here but previously declared as a struct [-Wmismatched-tags] class EasyCL_EXPORT EasyCL { ^ /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:38:1: note: did you mean class here? struct EasyCL; ^~ class /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClStorage.cpp:46:11: error: call to member function 'in' is ambiguous kernel->in(index);

/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:95:15: note: candidate
      function
    CLKernel *in(float value);
              ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:98:15: note: candidate
      function
    CLKernel *in(int32_t value);
              ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:100:15: note: candidate
      function
    CLKernel *in(int64_t value);
              ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:102:15: note: candidate
      function
    CLKernel *in(uint64_t value);
              ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:104:15: note: candidate
      function
    CLKernel *in(uint32_t value);
              ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:69:15: note: candidate
      function not viable: no known conversion from 'long' to 'CLArray *' for 1st argument
    CLKernel *in(CLArray *clarray1d) { return input(clarray1d); }
              ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:77:15: note: candidate
      function not viable: no known conversion from 'long' to 'CLWrapper *' for 1st argument
    CLKernel *in(CLWrapper *wrapper) { return input(wrapper); }
              ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:85:36: note: candidate
      function template not viable: requires 2 arguments, but 1 was provided
    template<typename T> CLKernel *in(int N, const T *data);
                                   ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClStorage.cpp:81:11: error: call to
      member function 'in' is ambiguous
  kernel->in(index);
  ~~~~~~~~^~
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:95:15: note: candidate
      function
    CLKernel *in(float value);
              ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:98:15: note: candidate
      function
    CLKernel *in(int32_t value);
              ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:100:15: note: candidate
      function
    CLKernel *in(int64_t value);
              ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:102:15: note: candidate
      function
    CLKernel *in(uint64_t value);
              ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:104:15: note: candidate
      function
    CLKernel *in(uint32_t value);
              ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:69:15: note: candidate
      function not viable: no known conversion from 'long' to 'CLArray *' for 1st argument
    CLKernel *in(CLArray *clarray1d) { return input(clarray1d); }
              ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:77:15: note: candidate
      function not viable: no known conversion from 'long' to 'CLWrapper *' for 1st argument
    CLKernel *in(CLWrapper *wrapper) { return input(wrapper); }
              ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLKernel.h:85:36: note: candidate
      function template not viable: requires 2 arguments, but 1 was provided
    template<typename T> CLKernel *in(int N, const T *data);
                                   ^
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorMath.cpp:8:
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduce.h:15:
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:5:1: warning: class
      'THClState' was previously declared as a struct [-Wmismatched-tags]
class THClState;
^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:52:16: note: previous use
      is here
typedef struct THClState
               ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:5:1: note: did you mean
      struct here?
class THClState;
^~~~~
struct
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:7:1: warning: class
      'THClTensor' was previously declared as a struct [-Wmismatched-tags]
class THClTensor;
^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:12:16: note: previous use
      is here
typedef struct THClTensor
               ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:7:1: note: did you mean
      struct here?
class THClTensor;
^~~~~
struct
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensorCopy.cpp:10:
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:150:
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLIntWrapper.h:11:
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLWrapper.h:17:1: warning: 
      'CLWrapper' defined as a class here but previously declared as a struct [-Wmismatched-tags]
class EasyCL_EXPORT CLWrapper {
^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:1: note: did you mean
      class here?
struct CLWrapper;
^~~~~~
class
6 warnings and 2 errors generated.
make[2]: *** [src/lib/CMakeFiles/THCl.dir/THClStorage.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
2 warnings generated.
2 warnings generated.
2 warnings generated.
8 warnings generated.
3 warnings generated.
5 warnings generated.
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClApply.cpp:1:
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClApply.h:5:
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:38:10: warning: class
      'CLWrapper' was previously declared as a struct [-Wmismatched-tags]
THCL_API class CLWrapper *THClTensor_wrapper(THClState *state, const THClTensor *self);
         ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:8: note: previous use
      is here
struct CLWrapper;
       ^
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClApply.cpp:1:
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClApply.h:5:
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:140:22: warning: 
      'THClTensor_toString' has C-linkage specified, but returns user-defined type 'std::string'
      (aka 'basic_string<char, char_traits<char>, allocator<char> >') which is incompatible with
      C [-Wreturn-type-c-linkage]
THCL_API std::string THClTensor_toString(THClState *state, const THClTensor *tensor);
                     ^
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClApply.cpp:1:
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClApply.h:7:
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClReduceApplyUtils.h:32:1: warning: 
      class 'CLWrapper' was previously declared as a struct [-Wmismatched-tags]
class CLWrapper;
^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:8: note: previous use
      is here
struct CLWrapper;
       ^
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClApply.cpp:2:
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:5:1: warning: class
      'THClState' was previously declared as a struct [-Wmismatched-tags]
class THClState;
^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:52:16: note: previous use
      is here
typedef struct THClState
               ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:5:1: note: did you mean
      struct here?
class THClState;
^~~~~
struct
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:7:1: warning: class
      'THClTensor' was previously declared as a struct [-Wmismatched-tags]
class THClTensor;
^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClTensor.h:12:16: note: previous use
      is here
typedef struct THClTensor
               ^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClKernels.h:7:1: note: did you mean
      struct here?
class THClTensor;
^~~~~
struct
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClApply.cpp:4:
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:50:1: warning: 'EasyCL'
      defined as a class here but previously declared as a struct [-Wmismatched-tags]
class EasyCL_EXPORT EasyCL {
^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:38:1: note: did you mean
      class here?
struct EasyCL;
^~~~~~
class
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClApply.cpp:4:
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/EasyCL.h:150:
In file included from /tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLIntWrapper.h:11:
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/EasyCL/CLWrapper.h:17:1: warning: 
      'CLWrapper' defined as a class here but previously declared as a struct [-Wmismatched-tags]
class EasyCL_EXPORT CLWrapper {
^
/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClGeneral.h:39:1: note: did you mean
      class here?
struct CLWrapper;
^~~~~~
class
7 warnings generated.
make[1]: *** [src/lib/CMakeFiles/THCl.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.
hughperkins commented 9 years ago

Ok, the error is here:

/tmp/luarocks_cltorch-scm-1-7608/cltorch/cltorch/src/lib/THClStorage.cpp:46:11: error: call to
member function 'in' is ambiguous

As to how to fix this, I will need to ponder. But it wont be tonight, since its 11:38pm now :-P

kingfengji commented 9 years ago

thanks hughperkins, thanks! just take your time. :)

hughperkins commented 9 years ago

Hi kingfengji, can you try branch uint64_t_2 please:

git clone git@github.com:hughperkins/cltorch.git -b uint64_t_2 uint64_t_2
cd uint64_t_2
luarocks make rocks/cltorch-scm-1.rockspec
luajit -l cltorch -e 'cltorch.test()'
kingfengji commented 8 years ago

Hi hughperkins, thanks for the reply, but it seems I dont have the access....

$ git clone git@github.com:hughperkins/cltorch.git -b uint64_t_2 uint64_t_2 Cloning into 'uint64_t_2'... Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

hughperkins commented 8 years ago

Hmmm, right. Please try this:

git clone https://github.com/hughperkins/cltorch.git -b uint64_t_2 uint64_t_2
cd uint64_t_2
luarocks make rocks/cltorch-scm-1.rockspec
luajit -l cltorch -e 'cltorch.test()'
kingfengji commented 8 years ago

A miracle ! It worked ! you rock, man. Thanks! Now I can try out the https://github.com/karpathy/char-rnn with my graphics card. thanks!

hughperkins commented 8 years ago

Cool :-) Let me know if any other install/run issues occur please.

kingfengji commented 8 years ago

one more thing

when I run the file, it looks like this:

th train.lua -data_dir data/tinyshakespeare -opencl 1 using OpenCL on GPU 0...
loading data files...
cutting off end of data so that the batches/sequences divide evenly reshaping tensor... data load done. Number of data batches in train: 423, val: 23, test: 0
vocab size: 65
creating an lstm with 2 layers
Using Apple , OpenCL platform: Apple Using OpenCL device: Iris Pro

Is this program using the AMD card or the integrated graphics card?

hughperkins commented 8 years ago

Iris Pro sounds like integrated graphics right?

What if you add -gpuid 1? (or maybe -gpuid 2 possibly)

kingfengji commented 8 years ago

yes ! -gpuid 1 will turn to Using OpenCL device: AMD Radeon R9 M370X Compute Engine

you are awesome ! thanks very much for your time!

hughperkins commented 8 years ago

Cool :-)

hughperkins commented 8 years ago

I wouldnt get your hopes up too much by the way. char-runs runs a bit slowly on cltorch at the moment :-( I have some plans to make char-rnn run faster on cltorch, but kind of got side-tracked... Basically, char-rnn needs to run a lot of very tiny gpu kernels, so it spends all its time starting/stopping kernels, and not much time actually calculating. I have some plans to automaticaly fuse the kernels, but kind of got sidetracked for now...

kingfengji commented 8 years ago

It's OK my dear friend,you've done a lot. currently I just plan to use my laptop to test the correctness....

but how can I update the awesome cltorch in the future, say, just another round of "git clone" and "luarocks make ",right?

hughperkins commented 8 years ago

Ok. I merged to master, so you can just luarocks install cltorch in the future.

hughperkins commented 8 years ago

Hi kingfengji, I've made some updates that might remove the warnings about struct vs class. if you get a moment, dont suppose, do you mind doing luarocks install cltorch, and checking whether some of those build warnings have gone?

hughperkins commented 8 years ago

Seems like I can close this, right?