Giter VIP home page Giter VIP logo

distro's Introduction

THIS REPOSITORY IS DEPRECEATED.

Please use https://github.com/torch/torch7

For install scripts, please look at: https://github.com/torch/ezinstall

Torch7 Library.

Torch7 provides a Matlab-like environment for state-of-the-art machine learning algorithms. It is easy to use and provides a very efficient implementation, thanks to an easy and fast scripting language (Lua) and a underlying C implementation.

In order to install Torch7 you can follow these simple instructions, but we suggest reading the detailed manual at http://www.torch.ch/manual/install/index

Requirements

  • C/C++ compiler
  • cmake
  • gnuplot
  • git

Optional

  • Readline
  • QT (QT4.8 is now supported)
  • CBLAS
  • LAPACK

Installation

$ git clone git://github.com/andresy/torch.git
$ cd torch
$ mkdir build
$ cd build

$ cmake .. 
OR
$ cmake .. -DCMAKE_INSTALL_PREFIX=/my/install/path

$make install

Running

$torch
Type help() for more info
Torch 7.0  Copyright (C) 2001-2011 Idiap, NEC Labs, NYU
Lua 5.1  Copyright (C) 1994-2008 Lua.org, PUC-Rio
t7> 

3rd Party Packages

Torch7 comes with a package manager based on Luarocks. With it it's easy to install new packages:

$ torch-rocks install image
$ torch-rocks list
$ torch-rocks search --all

Documentation

The full documentation is installed in /my/install/path/share/torch/html/index.html

Also, http://www.torch.ch/manual/index points to the latest documentation of Torch7.

distro's People

Contributors

alexbw avatar anirudh2290 avatar apaszke avatar artcg avatar atcold avatar babo avatar borisfom avatar btnc avatar camillol avatar chriscummins avatar fredowski avatar gustavla avatar howard0su avatar hughperkins avatar jdonald avatar jkremser avatar justinnazari avatar knhuq avatar linusu avatar lucasb-eyer avatar lukeyeager avatar luoq avatar perweij avatar politeles avatar rufflewind avatar soumith avatar szagoruyko avatar techraf avatar vavrusa avatar wtfuzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

distro's Issues

Move install-deps.sh into distro?

Hi Soumith,

I want to instal la specific version of distro, always the sam version.

So, I'm cloning distro, then checking out, a specific hash.

However, install-deps then comes down from an unknown version for now.

thinking, maybe could be possible to move install-deps into distro?

Hugh

Build failed (Ubuntu 14.04): assembler error while building Generator.c

OS: Ubuntu 14.04
Compiler: gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)
CPU: Intel i7-920

Ran following from master head:

./install.sh

Relevant error:

[ 96%] Building C object CMakeFiles/torch.dir/Generator.c.o
/tmp/ccvz7qN1.s: Assembler messages:
/tmp/ccvz7qN1.s:142204: Error: no such instruction: `eovq %rbx,%rdi'

Probably relevant CMake checks:

-- Performing Test C_HAS_SSE1_1
-- Performing Test C_HAS_SSE1_1 - Success
-- Performing Test C_HAS_SSE2_1
-- Performing Test C_HAS_SSE2_1 - Success
-- Performing Test C_HAS_SSE3_1
-- Performing Test C_HAS_SSE3_1 - Failed
-- Performing Test C_HAS_SSE3_2
-- Performing Test C_HAS_SSE3_2 - Success
-- Performing Test C_HAS_SSE4_1_1
-- Performing Test C_HAS_SSE4_1_1 - Failed
-- Performing Test C_HAS_SSE4_1_2
-- Performing Test C_HAS_SSE4_1_2 - Success
-- Performing Test C_HAS_SSE4_2_1
-- Performing Test C_HAS_SSE4_2_1 - Failed
-- Performing Test C_HAS_SSE4_2_2
-- Performing Test C_HAS_SSE4_2_2 - Success
-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Failed
-- Performing Test C_HAS_AVX_2
-- Performing Test C_HAS_AVX_2 - Failed
-- Performing Test C_HAS_AVX_3
-- Performing Test C_HAS_AVX_3 - Failed
-- Performing Test CXX_HAS_SSE1_1
-- Performing Test CXX_HAS_SSE1_1 - Success
-- Performing Test CXX_HAS_SSE2_1
-- Performing Test CXX_HAS_SSE2_1 - Success
-- Performing Test CXX_HAS_SSE3_1
-- Performing Test CXX_HAS_SSE3_1 - Failed
-- Performing Test CXX_HAS_SSE3_2
-- Performing Test CXX_HAS_SSE3_2 - Success
-- Performing Test CXX_HAS_SSE4_1_1
-- Performing Test CXX_HAS_SSE4_1_1 - Failed
-- Performing Test CXX_HAS_SSE4_1_2
-- Performing Test CXX_HAS_SSE4_1_2 - Success
-- Performing Test CXX_HAS_SSE4_2_1
-- Performing Test CXX_HAS_SSE4_2_1 - Failed
-- Performing Test CXX_HAS_SSE4_2_2
-- Performing Test CXX_HAS_SSE4_2_2 - Success
-- Performing Test HAS_C11_ATOMICS
-- Performing Test HAS_C11_ATOMICS - Failed
-- Performing Test HAS_MSC_ATOMICS
-- Performing Test HAS_MSC_ATOMICS - Failed
-- Performing Test HAS_GCC_ATOMICS
-- Performing Test HAS_GCC_ATOMICS - Success

Global install

It would be really nice if torch could have an optional step to install itself globally. This is usually the sudo make install step.

Basically it would copy most of the folders from the install/ folder to /usr/local/. This would allow torch to be used by all users on the system, but most importantly, it wouldn't require the torch-activate script which is causing all kinds off headaches, especially with provisioning tools like Ansible.

Install.sh failed on Ubuntu 14.04

./install.sh
Prefix set to /home/jwh/torch/install
Installing Lua version: LUAJIT21
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_BC_POW':
buildvm_x86.dasc:(.text+0x84b): undefined reference to `lj_wrap_pow'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_log':
buildvm_x86.dasc:(.text+0x269c): undefined reference to `lj_wrap_log'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_log10':
buildvm_x86.dasc:(.text+0x26cb): undefined reference to `lj_wrap_log10'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_exp':
buildvm_x86.dasc:(.text+0x26fa): undefined reference to `lj_wrap_exp'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_sin':
buildvm_x86.dasc:(.text+0x2729): undefined reference to `lj_wrap_sin'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_cos':
buildvm_x86.dasc:(.text+0x2758): undefined reference to `lj_wrap_cos'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_tan':
buildvm_x86.dasc:(.text+0x2787): undefined reference to `lj_wrap_tan'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_asin':
buildvm_x86.dasc:(.text+0x27b6): undefined reference to `lj_wrap_asin'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_acos':
buildvm_x86.dasc:(.text+0x27e5): undefined reference to `lj_wrap_acos'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_atan':
buildvm_x86.dasc:(.text+0x2814): undefined reference to `lj_wrap_atan'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_sinh':
buildvm_x86.dasc:(.text+0x2843): undefined reference to `lj_wrap_sinh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_cosh':
buildvm_x86.dasc:(.text+0x2872): undefined reference to `lj_wrap_cosh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_tanh':
buildvm_x86.dasc:(.text+0x28a1): undefined reference to `lj_wrap_tanh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_pow':
buildvm_x86.dasc:(.text+0x28e5): undefined reference to `lj_wrap_pow'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_atan2':
buildvm_x86.dasc:(.text+0x2929): undefined reference to `lj_wrap_atan2'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_fmod':
buildvm_x86.dasc:(.text+0x296d): undefined reference to `lj_wrap_fmod'
collect2: error: ld returned 1 exit status
make[2]: *** [exe/luajit-rocks/luajit-2.1/luajit] Error 1
make[1]: *** [exe/luajit-rocks/luajit-2.1/CMakeFiles/luajit.dir/all] Error 2
make: *** [all] Error 2
./install.sh: line 67: /home/jwh/torch/install/bin/luarocks: No such file or directory
Installing common Lua packages
./install.sh: line 71: /home/jwh/torch/install/bin/luarocks: No such file or directory
./install.sh: line 72: /home/jwh/torch/install/bin/luarocks: No such file or directory
./install.sh: line 73: /home/jwh/torch/install/bin/luarocks: No such file or directory
Installing core Torch packages
./install.sh: line 76: /home/jwh/torch/install/bin/luarocks: No such file or directory

Any suggestions? Thanks.

PATH manipulation in install script

Reported by @Phyks here: torch/torch7#419

Hi,

The install script currently prepends torch install directory to the $PATH variable, in our .bashrc/.zshrc. However, I think it should not prepend but append.

Indeed, $PATH is parsed from left to right, and the directory on the left has then the highest priority. For a local install, the install directory is easily accessible (by the user, and by malicious scripts / users), which can put their some executables with the same names as common ones (say cd or even worse ssh) and the original ones will be hidden, which results in a security risk.

Moreover, for ZSH, I think that the $PATH definition should go to .zshenv and not .zshrc (at least, the prepending did not work on my setup because my $PATH definition is in .zshenv and there is no such things in .zshrc so the lines were not added correctly).

Thanks

Auto-update function?

Two related observations:

  1. would be nice to be able to do torch-update, and it will update at least torch7, nn, cutorch, cunn, to latest version
  2. would be nice if installing distro automatically installed the latest versions :-) Currently I think that the version are set in the git submodules? And so we dont always get the latest versions, and have to build twice?

sub-modules aren't updated on install?

OK, so I didn't realize that install.sh wouldn't pull the latest commits and install those. It took me (honestly) about 2 hours to realize why a "fresh" install of torch wasn't installing the latest cudnn commit. This is partly my stupidity, but also I really wonder why install.sh and update.sh aren't the same thing.

So, is having "install.sh" AND "update.sh" confusing to anyone else? I feel like this "install.sh" should at least prompt a call to "update.sh" (i.e. ask the user if they want to update sub-repos to the latest version). Somehow I think this is more intuitive. Am I crazy? Or put another, I know I'm crazy... but am I crazy about this?

require 'cutorch' takes 10s in local install

So I cleaned the old global install, switched to local and loading cutorch with it takes 10s like it was compiled with debug options. Old installation was taking only 1s. Tried several times from scratch. Another machine with local install (4 Titans too) seems to be ok.
Don't know how to fix this.
nvprof with nvprof th -e "s = torch.tic(); require 'cutorch'; print(torch.toc(s))":

==24474== Profiling result:
Time(%)      Time     Calls       Avg       Min       Max  Name
100.00%  185.41us        12  15.450us  1.1200us  165.95us  [CUDA memcpy HtoD]

==24474== API calls:
Time(%)      Time     Calls       Avg       Min       Max  Name
 68.31%  7.19589s        12  599.66ms  147.99us  2.41770s  cudaDeviceEnablePeerAccess
 23.94%  2.52212s        14  180.15ms  7.3370us  2.52103s  cudaMalloc
  7.70%  810.81ms         4  202.70ms  119.40ms  235.93ms  cudaFree
  0.04%  4.6234ms       664  6.9620us     127ns  291.77us  cuDeviceGetAttribute
  0.01%  557.94us         8  69.743us  67.168us  74.313us  cuDeviceTotalMem
  0.00%  450.06us         8  56.257us  52.607us  71.948us  cuDeviceGetName
  0.00%  194.42us        12  16.201us  4.8500us  104.35us  cudaDeviceCanAccessPeer
  0.00%  182.14us        12  15.178us  6.8660us  40.687us  cudaMemcpy
  0.00%  27.852us        32     870ns     434ns  3.3870us  cudaEventCreateWithFlags
  0.00%  17.988us        40     449ns     257ns  2.2410us  cudaDeviceGetAttribute
  0.00%  15.284us        10  1.5280us     300ns  2.1950us  cudaSetDevice
  0.00%  9.8570us         5  1.9710us  1.2150us  3.3630us  cudaGetDevice
  0.00%  2.4080us        12     200ns     137ns     321ns  cuDeviceGet
  0.00%  1.2470us         3     415ns     189ns     797ns  cuDeviceGetCount
  0.00%     722ns         1     722ns     722ns     722ns  cudaGetDeviceCount
  0.00%     618ns         1     618ns     618ns     618ns  cuInit
  0.00%     363ns         1     363ns     363ns     363ns  cuDriverGetVersion

Penlight dependency error

Following the instructions here for my installation on Ubuntu 14.04.

I got an error when I execute the third line:

Updating manifest for /home/lex/torch/install/lib/luarocks/rocks
dok scm-1 is now built and installed in /home/lex/torch/install/ (license: BSD)

Missing dependencies for trepl:
penlight >= 1.1.0

Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/torch/rocks/master - Failed downloading https://raw.githubusercontent.com/torch/rocks/master/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master - Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest

Error: Could not satisfy dependency: penlight >= 1.1.0

I tried sourcing bashrc and my profile, installed penlight with luarocks and did

cd ~/torch; ./install.sh

all over. But I still got the same error. Would appreciate your help.

Torch install failed on Ubuntu 14.04

I tried to install Torch7 on ubuntu14.04 according to the official guide but when I typed command cd ~/torch; ./install.sh, I always received the following error:
Thanks in advance

root@andrew:~/torch# cd ~/torch; ./install.sh
Prefix set to /root/torch/install
Installing Lua version: LUAJIT21
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/bin/cc" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /root/torch/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec3255080616/fast"

/usr/bin/make -f CMakeFiles/cmTryCompileExec3255080616.dir/build.make
CMakeFiles/cmTryCompileExec3255080616.dir/build

make[1]: Entering directory `/root/torch/build/CMakeFiles/CMakeTmp'

/usr/bin/cmake -E cmake_progress_report
/root/torch/build/CMakeFiles/CMakeTmp/CMakeFiles 1

Building C object
CMakeFiles/cmTryCompileExec3255080616.dir/testCCompiler.c.o

/usr/bin/cc -o CMakeFiles/cmTryCompileExec3255080616.dir/testCCompiler.c.o
-c /root/torch/build/CMakeFiles/CMakeTmp/testCCompiler.c

Linking C executable cmTryCompileExec3255080616

/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec3255080616.dir/link.txt --verbose=1

/usr/bin/cc CMakeFiles/cmTryCompileExec3255080616.dir/testCCompiler.c.o -o
cmTryCompileExec3255080616 -rdynamic

/usr/bin/ld: cannot find crt1.o: No such file or directory

/usr/bin/ld: cannot find crti.o: No such file or directory

/usr/bin/ld: cannot find -lgcc_s

collect2: ld returned 1 exit status

make[1]: *** [cmTryCompileExec3255080616] Error 1

make[1]: Leaving directory `/root/torch/build/CMakeFiles/CMakeTmp'

make: *** [cmTryCompileExec3255080616/fast] Error 2

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):

wrong cuda detection on ubuntu 12.04

Hi everyone,

the installation script failed on my machine because install.sh detects nvidia-smi although I don't have CUDA installed. The script tries to compile cutorch but can't find the libraries then. I fixed it by explicitely removing the if ' [ -x "$path_to_nvcc" ] || [ -x "$path_to_nvidiasmi" ] ' blocks. Maybe this helps someone who has a similar problem.

These are the critical lines that wrongly indicate the presence of CUDA on my system:

set +e 
path_to_nvcc=$(which nvcc)
path_to_nvidiasmi=$(which nvidia-smi)
set -e 

if [ -x "$path_to_nvcc" ] || [ -x "$path_to_nvidiasmi" ]

Debian packages for torch7

Torch package guide for Debian Sid users (draft)

NOTE These packages are still experimental and under development. There are problems.

  • Edit /etc/apt/sources.list, to make sure you have some lines like this:
deb http://ftp2.cn.debian.org/debian unstable main contrib non-free
deb http://ftp2.cn.debian.org/debian experimental main contrib non-free
  • Update APT cache
sudo apt update
  • Pull and install Torch
sudo apt install torch-core-free

Notes

  • cutorch and cunn are still not packaged yet.

FAQ

luarocks install hanging up

First, let me say I am fairly new to Torch, Lua, and Ubuntu 14.04. I installed torch7 using the instructions listed at https://github.com/torch/distro. When I try and install other modules/packages using luarocks install, the installation hangs up. The following is an example of the output:
kzachery@DELL:~$ luarocks install nnx
Installing https://raw.githubusercontent.com/torch/rocks/master/nnx-0.1-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/nnx-0.1-1.rockspec... switching to 'build' mode
Cloning into 'lua---nnx'...

The next thing that happens is the download times out. This has happened with all of the modules/packages I have tried to install using luarocks. Not sure why downloads keep timing out. My work around is to do a manual git clone, cd to cloned directory, and then luarocks make rocks. The module directory paths for the git clone (e.g., https://github.com/torch/module_name.git) are always different than the site listed above. The thing is, when I use luarocks install, the https://raw.githubusercontent.com/torch/rocks/master/ site is always listed. Is there something I forgot to set in a configure file? Any assistance in this matter would be greatly appreciated.

-knz
[email protected]

Installation script doesn't work on Yosemite

Workaround: MACOSX_DEPLOYMENT_TARGET=10.9 ./install.sh

Thanks for providing this script.

Error occurs on
OS Yosemite : 10.10.1 (14B25)
XCode Version : 6.1.1 (6A2008a)
Command Line Version: 6.1.1 (6A2008a)

Error:
cc-4.9: warning: couldn't understand kern.osversion '14.0.0
Linking C shared library libluajit.dylib
gcc-4.9: warning: couldn't understand kern.osversion '14.0.0
Undefined symbols for architecture x86_64:
"__Unwind_DeleteException", referenced from:
_lj_err_unwind_dwarf in ljamalg.c.o
"__Unwind_GetCFA", referenced from:
_lj_err_unwind_dwarf in ljamalg.c.o
"__Unwind_RaiseException", referenced from:
_lj_err_throw in ljamalg.c.o
"__Unwind_SetGR", referenced from:
_lj_err_unwind_dwarf in ljamalg.c.o
"__Unwind_SetIP", referenced from:
_lj_err_unwind_dwarf in ljamalg.c.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [exe/luajit-rocks/luajit-2.1/libluajit.dylib] Error 1
make[1]: *** [exe/luajit-rocks/luajit-2.1/CMakeFiles/libluajit.dir/all] Error 2

Alternatives to always-up-to-date submodules

There are obvious downsides to having submodules always update to master (no master branch is 100% perfect all the time, and performance and memory leak regressions can be subtle and take awhile to catch and fix).

The downside to having submodules at fixed commits is stewardship overhead to make sure the submodules are as up-to-date as possible, but no more.

I lean more on the side of stability than ease-of-stewardship.

Install error on Mac OS X 10.11

./install.sh
Prefix set to /Users/linkerlin/torch/install
Installing Lua version: LUAJIT21
Installing common Lua packages
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Error: Build error: Failed compiling module lfs.so

Missing dependencies for penlight:
luafilesystem

ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Error: Failed installing dependency: https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luafilesystem-1.6.3-1.src.rock - Build error: Failed compiling module lfs.so

Including a script .lua in another one

Hi,
i'm triing to include a script .lua in another one. I create a script "function.lua" in which i define a function that i want to recall from another script "main.lua " in which i tried to include funcion.lua with the instruction require 'function.lua' . It is corret? it is the rigth way to include a module in a new one? when i run main.lua i get this error:
/home/deepvm/torch/install/bin/luajit: /home/deepvm/torch/install/share/lua/5.1/trepl/init.lua:363: module 'function.lua' not found:No LuaRocks module found for function.lua
no field package.preload['function.lua']
no file '/home/deepvm/.luarocks/share/lua/5.1/function/lua.lua'
no file '/home/deepvm/.luarocks/share/lua/5.1/function/lua/init.lua'
no file '/home/deepvm/torch/install/share/lua/5.1/function/lua.lua'
no file '/home/deepvm/torch/install/share/lua/5.1/function/lua/init.lua'
no file './function/lua.lua'
no file '/home/deepvm/torch/install/share/luajit-2.1.0-alpha/function/lua.lua'
no file '/usr/local/share/lua/5.1/function/lua.lua'
no file '/usr/local/share/lua/5.1/function/lua/init.lua'
no file '/home/deepvm/.luarocks/lib/lua/5.1/function/lua.so'
no file '/home/deepvm/torch/install/lib/lua/5.1/function/lua.so'
no file './function/lua.so'
no file '/usr/local/lib/lua/5.1/function/lua.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/home/deepvm/.luarocks/lib/lua/5.1/function.so'
no file '/home/deepvm/torch/install/lib/lua/5.1/function.so'
no file './function.so'
no file '/usr/local/lib/lua/5.1/function.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
/home/deepvm/torch/install/share/lua/5.1/trepl/init.lua:363: in function 'require'
/home/deepvm/tesi/codice/main.lua:1: in main chunk
[C]: in function 'dofile'
...epvm/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
[C]: at 0x00405d70

How can i solve it??
thank you for your help

Installing Torch via github.com is painful - please consider an alternative install path

Github.com is constantly timing out as of late. Due to the large number of submodules that have to be cloned to install Torch, installing via git clone https://github.com/torch/distro.git ~/torch --recursive invariably fails. Please consider offering a simpler installation path for Torch that doesn't revolve around cloning a bunch of submodules recursively via github.com.

An example timeout failure:

Cloning into 'exe/env'...
Ffatal: u unable to access 'https://github.com/torch/env.git/': Failed to connect to github.com port 443: Operation timed out
Clone of 'https://github.com/torch/env.git' into submodule path 'exe/env' failed

Fresh install on OS X 10.9 fails, can't find libsundown.so

Fails for Lua 5.2, 5.1 and LuaJIT 2.1
Ran the dependency install beforehand, which succeeded just fine.

$ ./install.sh
Prefix set to /Users/Alex/torch/install
Installing Lua version: LUAJIT21
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:

   liblua

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

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open file: /Users/Alex/torch/install/lib/libluajit.dylib (No such file or directory)
Installing common Lua packages
In file included from src/lfs.c:63:
/Users/Alex/torch/install/include/lua.h:110:9: error: unknown type name 'LUA_UNSIGNED'
typedef LUA_UNSIGNED lua_Unsigned;
        ^
In file included from src/lfs.c:65:
/Users/Alex/torch/install/include/lualib.h:15:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_base) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:15:12: error: expected identifier or '('
LUAMOD_API int (luaopen_base) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:18:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_coroutine) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:18:12: error: expected identifier or '('
LUAMOD_API int (luaopen_coroutine) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:21:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_table) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:21:12: error: expected identifier or '('
LUAMOD_API int (luaopen_table) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:24:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_io) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:24:12: error: expected identifier or '('
LUAMOD_API int (luaopen_io) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:27:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_os) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:27:12: error: expected identifier or '('
LUAMOD_API int (luaopen_os) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:30:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_string) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:30:12: error: expected identifier or '('
LUAMOD_API int (luaopen_string) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:33:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_bit32) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:33:12: error: expected identifier or '('
LUAMOD_API int (luaopen_bit32) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:36:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_math) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:36:12: error: expected identifier or '('
LUAMOD_API int (luaopen_math) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:39:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_debug) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:39:12: error: expected identifier or '('
LUAMOD_API int (luaopen_debug) (lua_State *L);
           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Error: Build error: Failed compiling object src/lfs.o

Missing dependencies for penlight:
luafilesystem

In file included from src/lfs.c:63:
/Users/Alex/torch/install/include/lua.h:110:9: error: unknown type name 'LUA_UNSIGNED'
typedef LUA_UNSIGNED lua_Unsigned;
        ^
In file included from src/lfs.c:65:
/Users/Alex/torch/install/include/lualib.h:15:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_base) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:15:12: error: expected identifier or '('
LUAMOD_API int (luaopen_base) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:18:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_coroutine) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:18:12: error: expected identifier or '('
LUAMOD_API int (luaopen_coroutine) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:21:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_table) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:21:12: error: expected identifier or '('
LUAMOD_API int (luaopen_table) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:24:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_io) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:24:12: error: expected identifier or '('
LUAMOD_API int (luaopen_io) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:27:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_os) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:27:12: error: expected identifier or '('
LUAMOD_API int (luaopen_os) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:30:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_string) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:30:12: error: expected identifier or '('
LUAMOD_API int (luaopen_string) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:33:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_bit32) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:33:12: error: expected identifier or '('
LUAMOD_API int (luaopen_bit32) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:36:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_math) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:36:12: error: expected identifier or '('
LUAMOD_API int (luaopen_math) (lua_State *L);
           ^
/Users/Alex/torch/install/include/lualib.h:39:1: error: unknown type name 'LUAMOD_API'
LUAMOD_API int (luaopen_debug) (lua_State *L);
^
/Users/Alex/torch/install/include/lualib.h:39:12: error: expected identifier or '('
LUAMOD_API int (luaopen_debug) (lua_State *L);
           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Error: Failed installing dependency: https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luafilesystem-1.6.3-1.src.rock - Build error: Failed compiling object src/lfs.o
In file included from lua_cjson.c:43:
/Users/Alex/torch/install/include/lua.h:110:9: error: unknown type name 'LUA_UNSIGNED'
typedef LUA_UNSIGNED lua_Unsigned;
        ^
lua_cjson.c:196:29: error: use of undeclared identifier 'LUAI_FIRSTPSEUDOIDX'
    cfg = lua_touserdata(l, lua_upvalueindex(1));
                            ^
/Users/Alex/torch/install/include/lua.h:41:30: note: expanded from macro 'lua_upvalueindex'
#define lua_upvalueindex(i)     (LUA_REGISTRYINDEX - (i))
                                 ^
/Users/Alex/torch/install/include/lua.h:40:27: note: expanded from macro 'LUA_REGISTRYINDEX'
#define LUA_REGISTRYINDEX       LUAI_FIRSTPSEUDOIDX
                                ^
lua_cjson.c:1324:22: error: use of undeclared identifier 'LUAI_FIRSTPSEUDOIDX'
    lua_pushvalue(l, lua_upvalueindex(1));
                     ^
/Users/Alex/torch/install/include/lua.h:41:30: note: expanded from macro 'lua_upvalueindex'
#define lua_upvalueindex(i)     (LUA_REGISTRYINDEX - (i))
                                 ^
/Users/Alex/torch/install/include/lua.h:40:27: note: expanded from macro 'LUA_REGISTRYINDEX'
#define LUA_REGISTRYINDEX       LUAI_FIRSTPSEUDOIDX
                                ^
3 errors generated.

Error: Build error: Failed compiling object lua_cjson.o
Installing core Torch packages
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/Alex/torch/install/include -c src/autolink.c -o src/autolink.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/Alex/torch/install/include -c src/buffer.c -o src/buffer.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/Alex/torch/install/include -c src/markdown.c -o src/markdown.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/Alex/torch/install/include -c src/stack.c -o src/stack.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/Alex/torch/install/include -c html/houdini_href_e.c -o html/houdini_href_e.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/Alex/torch/install/include -c html/houdini_html_e.c -o html/houdini_html_e.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/Alex/torch/install/include -c html/html.c -o html/html.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/Alex/torch/install/include -c html/html_smartypants.c -o html/html_smartypants.o -Isrc/ -Ihtml/
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -bundle -undefined dynamic_lookup -all_load -o libsundown.so -L/Users/Alex/torch/install/lib src/autolink.o src/buffer.o src/markdown.o src/stack.o html/houdini_href_e.o html/houdini_html_e.o html/html.o html/html_smartypants.o
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Error: Build error: Failed compiling module libsundown.so

Build leaves repo in unclean state

After cloning and running ./install.sh the working directory is left in a dirty state. This is not a problem with torch/distro itself but some of the submodules is leaving build/ directories that isn't in the .gitignore.

  • exe/qtlua
  • extra/audio
  • extra/cunnx
  • extra/cutorch
  • extra/nn
  • extra/nngraph
  • extra/nnx
  • pkg/optim
  • pkg/paths
  • pkg/qttorch
  • pkg/sys
  • pkg/torch

In addition; these two packages have more files than only build/.

  • extra/threads
  • pkg/sundown

My specific use case of this is to install Torch via Ansible (automation software, like Puppet or Chef) and support reruns (aka. incremental builds). The idea is that it runs git pull again and if any new commits where added it will run install.sh again. This is currently failing with Local modifications exist in repository.

If we think that the correct way to fix this is to add .gitignore files to all the repos, I'd be happy to send pull requests to them all. Maybe there is a way to only add one .gitignore in this repo but I feel that adding it to every repo is the right way™ to do it.

Issue while trying to display an image in Torch7

I'm trying to display an image in Torch7 with the following command sequence:

th> require 'image'
th> i = image.lena()
th> image.display(i)

However, I'm facing the following issue:

/home/fccoelho/torch/install/share/lua/5.1/trepl/init.lua:383: module 'qt' not found:No LuaRocks module found for qt

Do someone knows why?

Could not satisfy dependency: luaffi

hello, i just installed torch follow http://torch.ch/docs/getting-started.html, but it output the error message, and i tried many times, like:rm -rf /.cache/luarocks && ./install.sh, but didn't work.
so what's wrong with the Installation? ths

Missing dependencies for nn:
luaffi 

Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/torch/rocks/master - Failed downloading https://raw.githubusercontent.com/torch/rocks/master/manifest - /home/work/wuwei/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master - Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest - /home/work/wuwei/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master/manifest

Error: Could not satisfy dependency: luaffi

installation issue on ubuntu Linux

I have reached the stage of the installation where I ran the script 'install.sh' by:


# TORCH_LUA_VERSION=LUA52 ./install.sh

The installation was not successful and I was able to fix certain issues by installing missing libraries etc. However at this point I reached a stage where I have really a hard time to diagnose what the issue is.
Therefore I am kindly asking for the assistance of an expert at this point. Since I am not quite sure which are the relevant lines of the output I include the complete output although it is quite long.


# TORCH_LUA_VERSION=LUA52 ./install.sh

Prefix set to /home/yitzhak/torch/install
Submodule 'exe/env' () registered for path 'exe/env'
Submodule 'exe/luajit-rocks' () registered for path 'exe/luajit-rocks'
Submodule 'exe/qtlua' () registered for path 'exe/qtlua'
Submodule 'exe/trepl' () registered for path 'exe/trepl'
Submodule 'extra/argcheck' () registered for path 'extra/argcheck'
Submodule 'extra/audio' () registered for path 'extra/audio'
Submodule 'extra/cudnn' () registered for path 'extra/cudnn'
Submodule 'extra/cunn' () registered for path 'extra/cunn'
Submodule 'extra/cunnx' () registered for path 'extra/cunnx'
Submodule 'extra/cutorch' () registered for path 'extra/cutorch'
Submodule 'extra/fftw3' () registered for path 'extra/fftw3'
Submodule 'extra/graph' () registered for path 'extra/graph'
Submodule 'extra/graphicsmagick' () registered for path 'extra/graphicsmagick'
Submodule 'extra/iTorch' () registered for path 'extra/iTorch'
Submodule 'extra/luaffifb' () registered for path 'extra/luaffifb'
Submodule 'extra/nn' () registered for path 'extra/nn'
Submodule 'extra/nngraph' () registered for path 'extra/nngraph'
Submodule 'extra/nnx' () registered for path 'extra/nnx'
Submodule 'extra/sdl2' () registered for path 'extra/sdl2'
Submodule 'extra/signal' () registered for path 'extra/signal'
Submodule 'extra/threads' () registered for path 'extra/threads'
Submodule 'pkg/cwrap' () registered for path 'pkg/cwrap'
Submodule 'pkg/dok' () registered for path 'pkg/dok'
Submodule 'pkg/gnuplot' () registered for path 'pkg/gnuplot'
Submodule 'pkg/image' () registered for path 'pkg/image'
Submodule 'pkg/optim' () registered for path 'pkg/optim'
Submodule 'pkg/paths' () registered for path 'pkg/paths'
Submodule 'pkg/qttorch' () registered for path 'pkg/qttorch'
Submodule 'pkg/sundown' () registered for path 'pkg/sundown'
Submodule 'pkg/sys' () registered for path 'pkg/sys'
Submodule 'pkg/torch' () registered for path 'pkg/torch'
Submodule 'pkg/xlua' () registered for path 'pkg/xlua'
Installing Lua version: LUA52
Installing common Lua packages
Installed luafilesystem
Installed penlight
Installed lua-cjson
Installing core Torch packages
gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c src/autolink.c -o src/autolink.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c src/buffer.c -o src/buffer.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c src/markdown.c -o src/markdown.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c src/stack.c -o src/stack.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c html/houdini_href_e.c -o html/houdini_href_e.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c html/houdini_html_e.c -o html/houdini_html_e.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c html/html.c -o html/html.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c html/html_smartypants.c -o html/html_smartypants.o -Isrc/ -Ihtml/
gcc -shared -o libsundown.so -L/home/yitzhak/torch/install/lib src/autolink.o src/buffer.o src/markdown.o src/stack.o html/houdini_href_e.o html/houdini_html_e.o html/html.o html/html_smartypants.o
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
sundown scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
cwrap scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

-- Configuring done
-- Generating done
-- Build files have been written to: /home/yitzhak/torch/pkg/paths/build
[100%] Built target paths
[100%] Built target paths
Install the project...
-- Install configuration: "Release"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/paths/scm-1/lua/paths/init.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/paths/scm-1/lib/libpaths.so
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUALIB= -DLUA_INCDIR="/home/yitzhak/torch/install/include" -DLUA_LIBDIR="/home/yitzhak/torch/install/lib" -DLUADIR="/home/yitzhak/torch/install/lib/luarocks/rocks/paths/scm-1/lua" -DLIBDIR="/home/yitzhak/torch/install/lib/luarocks/rocks/paths/scm-1/lib" -DCMAKE_INSTALL_PREFIX="/home/yitzhak/torch/install/lib/luarocks/rocks/paths/scm-1" && make

cd build && make install
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
paths scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

-- Compiling with OpenMP support
-- Compiling with OpenMP support
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this on this machine.
-- No OMAP4 processor on this on this machine.
-- Atomics: using GCC intrinsics
-- Checking for [mkl_gf - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_gf: not found
-- Checking for [mkl_gf - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_gf: not found
-- Checking for [mkl_intel - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl_gf - mkl_sequential - mkl_core - m]
--   Library mkl_gf: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
--   Library mkl_intel: not found
-- Checking for [mkl_gf - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_gf: not found
-- Checking for [mkl_gf - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_gf: not found
-- Checking for [mkl_intel - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
--   Library mkl: not found
-- MKL library not found
-- Checking for [openblas]
--   Library openblas: /opt/OpenBLAS/lib/libopenblas.so
-- Found a library with BLAS API (open).
-- Found a library with LAPACK API. (open)
-- C inline is supported (inline)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yitzhak/torch/pkg/torch/build
[  1%] Built target luaT
[ 25%] Built target TH
[ 50%] Built target torch
[ 75%] Built target torch_static
[ 98%] Built target TH_static
[100%] Built target luaT_static
[  1%] Built target luaT
[ 25%] Built target TH
[ 50%] Built target torch
[ 75%] Built target torch_static
[ 98%] Built target TH_static
[100%] Built target luaT_static
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /home/yitzhak/torch/install/share/cmake/torch/TorchExports.cmake
-- Installing: /home/yitzhak/torch/install/share/cmake/torch/TorchExports-release.cmake
-- Up-to-date: /home/yitzhak/torch/install/share/cmake/torch/TorchConfig.cmake
-- Up-to-date: /home/yitzhak/torch/install/share/cmake/torch/TorchWrap.cmake
-- Up-to-date: /home/yitzhak/torch/install/share/cmake/torch/TorchPathsInit.cmake
-- Up-to-date: /home/yitzhak/torch/install/share/cmake/torch/TorchPackage.cmake
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lib/libtorch.so
-- Set runtime path of "/home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lib/libtorch.so" to "$ORIGIN/../lib:/home/yitzhak/torch/install/lib:/opt/OpenBLAS/lib"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/init.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/File.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/Tensor.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/CmdLine.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/FFI.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/Tester.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/test.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/README.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/gather.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/random.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/pipefile.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/index.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/storage.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/tensor.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/memoryfile.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/maths.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/file.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/diskfile.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/timer.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/serialization.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/cmdline.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/utility.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/tester.md
-- Up-to-date: /home/yitzhak/torch/install/lib/libTH.so
-- Up-to-date: /home/yitzhak/torch/install/include/TH/TH.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THAllocator.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THBlas.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THDiskFile.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THFile.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THFilePrivate.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THGeneral.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THGenerateAllTypes.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THGenerateFloatTypes.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THGenerateIntTypes.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THLapack.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THLogAdd.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THMemoryFile.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THRandom.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THStorage.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THTensor.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THTensorApply.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THTensorDimApply.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THTensorMacros.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THVector.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/THAtomic.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THBlas.c
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THBlas.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THLapack.c
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THLapack.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THStorage.c
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THStorage.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THStorageCopy.c
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THStorageCopy.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THTensor.c
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THTensor.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THTensorConv.c
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THTensorConv.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THTensorCopy.c
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THTensorCopy.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THTensorLapack.c
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THTensorLapack.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THTensorMath.c
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THTensorMath.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THTensorRandom.c
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THTensorRandom.h
-- Up-to-date: /home/yitzhak/torch/install/include/TH/generic/THVector.c
-- Up-to-date: /home/yitzhak/torch/install/share/cmake/torch/THConfig.cmake
-- Up-to-date: /home/yitzhak/torch/install/lib/libluaT.so
-- Up-to-date: /home/yitzhak/torch/install/include/luaT.h
-- Up-to-date: /home/yitzhak/torch/install/share/cmake/torch/luaTConfig.cmake
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUA=/home/yitzhak/torch/install/bin/lua -DLUALIB= -DLUA_BINDIR="/home/yitzhak/torch/install/bin" -DLUA_INCDIR="/home/yitzhak/torch/install/include" -DLUA_LIBDIR="/home/yitzhak/torch/install/lib" -DLUADIR="/home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lua" -DLIBDIR="/home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1/lib" -DCMAKE_INSTALL_PREFIX="/home/yitzhak/torch/install/lib/luarocks/rocks/torch/scm-1" && make -j$(getconf _NPROCESSORS_ONLN)

cd build && make install
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
torch scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
dok scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c readline.c -o readline.o
gcc -shared -o readline.so -L/home/yitzhak/torch/install/lib readline.o -lreadline
gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c utils.c -o utils.o
gcc -shared -o treplutils.so -L/home/yitzhak/torch/install/lib utils.o
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
trepl scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

-- Found Torch7 in /home/yitzhak/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yitzhak/torch/pkg/sys/build
[ 50%] Built target sys
[100%] Built target sys_static
[ 50%] Built target sys
[100%] Built target sys_static
Install the project...
-- Install configuration: "Release"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/sys/1.1-0/lib/libsys.so
-- Set runtime path of "/home/yitzhak/torch/install/lib/luarocks/rocks/sys/1.1-0/lib/libsys.so" to "$ORIGIN/../lib:/home/yitzhak/torch/install/lib:/opt/OpenBLAS/lib"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/sys/1.1-0/lua/sys/init.lua
cmake -E make_directory build && cd build && cmake .. -DLUALIB= -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/yitzhak/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/yitzhak/torch/install/lib/luarocks/rocks/sys/1.1-0" && make
cd build && make install
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
sys 1.1-0 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
xlua 1.0-0 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

-- Found Torch7 in /home/yitzhak/torch/install
-- Compiling with OpenMP support
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yitzhak/torch/extra/nn/build
[ 50%] Built target nn
[100%] Built target nn_static
[ 50%] Built target nn
[100%] Built target nn_static
Install the project...
-- Install configuration: "Release"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lib/libnn.so
-- Set runtime path of "/home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lib/libnn.so" to "$ORIGIN/../lib:/home/yitzhak/torch/install/lib:/opt/OpenBLAS/lib"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Mean.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SplitTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CSubTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/TanhShrink.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/VolumetricAveragePooling.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CDivTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CAddTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/NarrowTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MultiLabelMarginCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MixtureTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/L1Penalty.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialSubSampling.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/ReLU.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/FlattenTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialContrastiveNormalization.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CMul.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialZeroPadding.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Padding.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Tanh.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MSECriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/AbsCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CosineEmbeddingCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MarginCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialDropout.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Sigmoid.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/LookupTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Criterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Linear.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Euclidean.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/TemporalSubSampling.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/LogSigmoid.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialBatchNormalization.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialConvolution.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Exp.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Concat.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/AddConstant.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SparseLinear.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Abs.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/VolumetricMaxPooling.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/HingeEmbeddingCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/TemporalConvolution.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/utils.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Reshape.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/ParallelCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/DepthConcat.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MultiMarginCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/ErrorMessages.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Replicate.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialFractionalMaxPooling.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/ConcatTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/PReLU.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Log.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Max.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CrossEntropyCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SmoothL1Criterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialUpSamplingNearest.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SoftMin.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MultiCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/init.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialFullConvolutionMap.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MarginRankingCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/VolumetricDeconvolution.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Dropout.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/BCECriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/VolumetricConvolution.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Jacobian.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SoftMax.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/L1HingeEmbeddingCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/BatchNormalization.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SoftSign.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Mul.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Normalize.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Power.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CriterionTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/JoinTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/DotProduct.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Transpose.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/View.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialMaxPooling.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CosineDistance.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SparseJacobian.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/TemporalMaxPooling.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/ParallelTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Select.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/HardShrink.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/LogSoftMax.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialLPPooling.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Sum.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/L1Cost.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/ClassNLLCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/hessian.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/DistKLDivCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialFullConvolution.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/GradientReversal.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialSoftMax.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/HardTanh.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/RReLU.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Container.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Clamp.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Sqrt.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Add.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SoftPlus.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Module.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SelectTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/StochasticGradient.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MM.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Parallel.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Square.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/PairwiseDistance.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialSubtractiveNormalization.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CMulTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/WeightedMSECriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialConvolutionMap.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Threshold.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Narrow.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SoftShrink.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Min.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Identity.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialDivisiveNormalization.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialAveragePooling.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Sequential.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/test.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Index.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialAdaptiveMaxPooling.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/WeightedEuclidean.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MulConstant.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialConvolutionMM.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Copy.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/index.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/criterion.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/training.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/transfer.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/testing.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/lena.jpg
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/square.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/htanh.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/rrelu.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/sigmmoid.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/prelu.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/logsigmoid.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/softplus.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/logsoftmax.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/softmin.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/softmax.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/sshrink.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/softsign.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/sqrt.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/hshrink.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/tanh.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/abs.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/sigmoid.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/lenap.jpg
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/relu.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/power.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/exp.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/containers.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/table.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/simple.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/module.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/convolution.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/overview.md
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/README.md
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/yitzhak/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/yitzhak/torch/install/lib/luarocks/rocks/nn/scm-1" && make

cd build && make install
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
nn scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

-- Found Torch7 in /home/yitzhak/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yitzhak/torch/extra/graph/build
Install the project...
-- Install configuration: "Release"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/graph/scm-1/lua/graph/Node.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/graph/scm-1/lua/graph/Edge.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/graph/scm-1/lua/graph/graphviz.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/graph/scm-1/lua/graph/init.lua
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/yitzhak/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/yitzhak/torch/install/lib/luarocks/rocks/graph/scm-1"; 
make
   
cd build && make install
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
graph scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: UNKNOWN)

-- Found Torch7 in /home/yitzhak/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yitzhak/torch/extra/nngraph/build
Install the project...
-- Install configuration: "Release"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/gmodule.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/graphinspecting.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/utils.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/ModuleFromCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/init.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/node.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/simple_print.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/JustTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/nesting.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/nest.lua
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/yitzhak/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/yitzhak/torch/install/lib/luarocks/rocks/nngraph/scm-1"; 
make
   
cd build && make install
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
nngraph scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: UNKNOWN)

-- Found Torch7 in /home/yitzhak/torch/install
-- Could NOT find JPEG (missing:  JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Could NOT find ZLIB (missing:  ZLIB_LIBRARY ZLIB_INCLUDE_DIR) 
-- Could NOT find PNG (missing:  PNG_LIBRARY PNG_PNG_INCLUDE_DIR) 
-- Compiling with OpenMP support
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yitzhak/torch/pkg/image/build
[ 25%] Built target image
[ 50%] Built target image_static
[ 75%] Built target ppm
[100%] Built target ppm_static
[ 25%] Built target image
[ 50%] Built target image_static
[ 75%] Built target ppm
[100%] Built target ppm_static
Install the project...
-- Install configuration: "Release"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lib/libppm.so
-- Set runtime path of "/home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lib/libppm.so" to "$ORIGIN/../lib:/home/yitzhak/torch/install/lib:/opt/OpenBLAS/lib"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lib/libimage.so
-- Set runtime path of "/home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lib/libimage.so" to "$ORIGIN/../lib:/home/yitzhak/torch/install/lib:/opt/OpenBLAS/lib"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/init.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/win.ui
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/test.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/fabio.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/lena.jpg
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/P5.pgm
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/rgb16-2x1.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/rgb2x1.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/P6.ppm
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/lena.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/corrupt-ihdr.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/P2.pgm
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/fabio.jpg
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/gray16-1x2.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/gray3x1.png
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/P4.pbm
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/README.md
cmake -E make_directory build && cd build && cmake .. -DLUALIB= -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/yitzhak/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/yitzhak/torch/install/lib/luarocks/rocks/image/1.1.alpha-0" && make
   
cd build && make install
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
image 1.1.alpha-0 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

-- Found Torch7 in /home/yitzhak/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yitzhak/torch/pkg/optim/build
Install the project...
-- Install configuration: "Release"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/rprop.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/lswolfe.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/sgd.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/asgd.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/ConfusionMatrix.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/cg.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/adadelta.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/checkgrad.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/polyinterp.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/fista.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/nag.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/adamax.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/adagrad.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/adam.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/lbfgs.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/init.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/Logger.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0/lua/optim/rmsprop.lua
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/yitzhak/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/yitzhak/torch/install/lib/luarocks/rocks/optim/1.0.5-0" && make
   
cd build && make install
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
optim 1.0.5-0 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c test.c -o test.o
gcc -shared -o ffi/libtest.so -L/home/yitzhak/torch/install/lib test.o
gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c call.c -o call.o -Idynasm
gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c ctype.c -o ctype.o -Idynasm
gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c ffi.c -o ffi.o -Idynasm
gcc -O2 -fPIC -I/home/yitzhak/torch/install/include -c parser.c -o parser.o -Idynasm
gcc -shared -o ffi.so -L/home/yitzhak/torch/install/lib call.o ctype.o ffi.o parser.o
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
luaffi scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

Installing optional Torch packages
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
gnuplot scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
env scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

-- Found Torch7 in /home/yitzhak/torch/install
-- OpenMP Found with compiler flag : -fopenmp
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yitzhak/torch/extra/nnx/build
[ 50%] Built target nnx
[100%] Built target nnx_static
[ 50%] Built target nnx
[100%] Built target nnx_static
Install the project...
-- Install configuration: "Release"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lib/libnnx.so
-- Set runtime path of "/home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lib/libnnx.so" to "$ORIGIN/../lib:/home/yitzhak/torch/install/lib:/opt/OpenBLAS/lib"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SparseCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialReSamplingEx.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/DistNLLCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/DataList.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialLinear.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/TreeNLLCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/Balance.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/FunctionWrapper.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialClassifier.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialUpSampling.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialMatching.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/Minus.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialPyramid.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/Tic.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/LA.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialFovea.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialColorTransform.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SoftMaxTree.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/DataSet.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/init.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SaturatedLU.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialPadding.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialGraph.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SuperCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialRecursiveFovea.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/DataSetLabelMe.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialDownSampling.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/DistMarginCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/Toc.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/DataSetSamplingPascal.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialSparseCriterion.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialNormalization.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/PushTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/Probe.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialMaxSampling.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/PullTable.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialRadialMatching.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/SpatialReSampling.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/MultiSoftMax.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/ZeroGrad.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/test-all.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1/lua/nnx/test-omp.lua
cmake -E make_directory build && cd build && cmake .. -DLUALIB= -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/yitzhak/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/yitzhak/torch/install/lib/luarocks/rocks/nnx/0.1-1" && make
   
cd build && make install
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
nnx 0.1-1 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

-- Configuring incomplete, errors occurred!
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUA=/home/yitzhak/torch/install/bin/lua -DLUALIB= -DLUA_BINDIR="/home/yitzhak/torch/install/bin" -DLUA_INCDIR="/home/yitzhak/torch/install/include" -DLUA_LIBDIR="/home/yitzhak/torch/install/lib" -DLUADIR="/home/yitzhak/torch/install/lib/luarocks/rocks/qtlua/scm-1/lua" -DLIBDIR="/home/yitzhak/torch/install/lib/luarocks/rocks/qtlua/scm-1/lib" -DCONFDIR="/home/yitzhak/torch/install/lib/luarocks/rocks/qtlua/scm-1/conf" && make

Cloning into 'qtlua'...
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring incomplete, errors occurred!
Using https://raw.githubusercontent.com/torch/rocks/master/qtlua-scm-1.rockspec... switching to 'build' mode
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUA=/home/yitzhak/torch/install/bin/lua -DLUA_BINDIR="/home/yitzhak/torch/install/bin" -DLUA_INCDIR="/home/yitzhak/torch/install/include" -DLUA_LIBDIR="/home/yitzhak/torch/install/lib" -DLUADIR="/home/yitzhak/torch/install/lib/luarocks/rocks/qtlua/scm-1/lua" -DLIBDIR="/home/yitzhak/torch/install/lib/luarocks/rocks/qtlua/scm-1/lib" -DCONFDIR="/home/yitzhak/torch/install/lib/luarocks/rocks/qtlua/scm-1/conf" && make

-- Found Torch7 in /home/yitzhak/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yitzhak/torch/extra/threads
[ 50%] Built target threads
[100%] Built target threads_static
[ 50%] Built target threads
[100%] Built target threads_static
Install the project...
-- Install configuration: "Release"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/threads/scm-1/lib/libthreads.so
-- Set runtime path of "/home/yitzhak/torch/install/lib/luarocks/rocks/threads/scm-1/lib/libthreads.so" to "$ORIGIN/../lib:/home/yitzhak/torch/install/lib:/opt/OpenBLAS/lib"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/threads/scm-1/lua/threads/init.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/threads/scm-1/lua/threads/threads.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/threads/scm-1/lua/threads/serialize.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/threads/scm-1/lua/threads/sharedserialize.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/threads/scm-1/lua/threads/queue.lua
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
threads scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
graphicsmagick 1.scm-0 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
argcheck scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

-- Found Torch7 in /home/yitzhak/torch/install
-- Configuring incomplete, errors occurred!
   cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/yitzhak/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/yitzhak/torch/install/lib/luarocks/rocks/audio/0.1-0" && make
   
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
fftw3 scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: BSD)

-- Found Torch7 in /home/yitzhak/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yitzhak/torch/extra/signal/build
[ 50%] Built target signal
[100%] Built target signal_static
[ 50%] Built target signal
[100%] Built target signal_static
Install the project...
-- Install configuration: "Release"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/signal/scm-1/lib/libsignal.so
-- Set runtime path of "/home/yitzhak/torch/install/lib/luarocks/rocks/signal/scm-1/lib/libsignal.so" to "$ORIGIN/../lib:/home/yitzhak/torch/install/lib"
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/signal/scm-1/lua/signal/convolution.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/signal/scm-1/lua/signal/wavelet.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/signal/scm-1/lua/signal/ffi.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/signal/scm-1/lua/signal/init.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/signal/scm-1/lua/signal/fft.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/signal/scm-1/lua/signal/extramath.lua
-- Installing: /home/yitzhak/torch/install/lib/luarocks/rocks/signal/scm-1/lua/signal/complex.lua
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/yitzhak/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/yitzhak/torch/install/lib/luarocks/rocks/signal/scm-1" && make
   
cd build && make install
Updating manifest for /home/yitzhak/torch/install/lib/luarocks/rocks
signal scm-1 is now built and installed in /home/yitzhak/torch/install/ (license: RWTFPL)

Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lzmq-0.4.3-1.src.rock... switching to 'build' mode


Do you want to automatically prepend the Torch install location
to PATH and LD_LIBRARY_PATH in your /home/yitzhak/.bashrc? (yes/no)
[yes] >>> 

luajit ffi

I managed to install the self-contained torch distro package. However, the final lua doesn't seem to have the 'ffi' package, even though it should belong to luajit, which is installed.

I have a ffi.lua in:

torch/extra/argcheck/benchmark/torch9ffi.lua
torch/extra/argcheck/benchmark/torch9luaffi.lua
torch/extra/cudnn/ffi.lua
torch/extra/signal/ffi.lua

but these are apparently not in the path if source torch-activate is executed.

require('ffi') therefore fails

Any ideas?

updating specific package (torch for example)

Hi,

i want to update torch package, and i can find the way to do it right.

  1. At first i tried "luarocks install torch", and it did installed the new version.
    But, when i call torch.svd i get the error "Lapack not found in compile time.",
    although lapack is installed for sure.
  2. i went back to the original installation (by running "install.sh"). now everything works well but the
    torch version is not the newest (i assume it's because how git handle submodules. the torch
    submodule point to specific revision of torch repository but not to the HEAD revision).

jupyter instead of ipython

I got error during install:

   ipy=$(which ipython)
   if [ -x "$ipy" ]
   then
    ipybase=$(ipython locate)
    rm -rf $ipybase/profile_torch
    ipython profile create torch
    echo 'c.KernelManager.kernel_cmd = ["/Users/ku/torch/install/bin/itorch_launcher","{connection_file}"]' >>$ipybase/profile_torch/ipython_config.py
    echo "c.Session.key = b''" >>$ipybase/profile_torch/ipython_config.py
    echo "c.Session.keyfile = b''" >>$ipybase/profile_torch/ipython_config.py
    mkdir -p $ipybase/profile_torch/static/base/images
    mkdir -p $ipybase/kernels/itorch
    cat kernelspec/kernel.json | sed "s@LUA_BINDIR@/Users/ku/torch/install/bin@" > $ipybase/kernels/itorch/kernel.json
    cp kernelspec/*.png $ipybase/kernels/itorch/
    cp ipynblogo.png $ipybase/profile_torch/static/base/images
    mkdir -p $ipybase/profile_torch/static/custom/
    cp custom.js $ipybase/profile_torch/static/custom/
    cp custom.css $ipybase/profile_torch/static/custom/
    cp itorch /Users/ku/torch/install/bin/
    cp itorch_launcher /Users/ku/torch/install/bin/
    cp -r ~/.ipython/profile_torch ~/.ipython/profile_itorch
    cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/Users/ku/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/Users/ku/torch/install/lib/luarocks/rocks/itorch/scm-1" && make
   else
    echo "Error: could not find ipython in PATH. Do you have it installed?"
   fi

Error: could not find ipython in PATH. Do you have it installed?

I don't have ipython, but have jupyter installed. Is it possible to use jupyter?

FFI.lua:49: attempt to call global 'unpack' (a nil value)

Hello,
I just re-installed Torch using the instructions from [(https://github.com/torch/distro)], with the TORCH_LUA_VERSION=LUA52 option (other Lua versions were causing problems with trebl). Most of my installation is running, except for cutorch: I get an "attempt to call global 'unpack' (a nil value)" error.

th> require 'cutorch'
/home/yj426/Torch/share/lua/5.2/trepl/init.lua:383: /home/yj426/Torch/share/lua/5.2/cutorch/FFI.lua:49: attempt to call global 'unpack' (a nil value)
stack traceback:
    /home/yj426/Torch/share/lua/5.2/trepl/init.lua:500: in function </home/yj426/Torch/share/lua/5.2/trepl/init.lua:493>
    [C]: in function 'error'
    /home/yj426/Torch/share/lua/5.2/trepl/init.lua:383: in function 'require'
    [string "_RESULT={require 'cutorch'}"]:1: in main chunk
    [C]: in function 'xpcall'
    /home/yj426/Torch/share/lua/5.2/trepl/init.lua:650: in function 'repl'
    /home/yj426/Torch/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
    [C]: in ?   

Would someone have an idea of what is going on there?

Best,
Yacine

Big API merged on CUDA side

We've just merged a big API change on the CUDA side wrt THC API.
Updated packages are:
cutorch
cunn
ccn2
imagine-nn
cunnx
fbcunn

I have tested on two machines, the new versions, that they compile and work as expect (ran the imagenet script with different backends, works fine).

This needs to be in sooner than later, so updating the distro commit hashes for these updates.
cc: @andresy @koraykv @clementfarabet

Continuous Integration Build System

I've never set up a Travis CI (or any other CI) build system. I would think of this as a "nice to have", and not urgent, since active developers are currently functioning as a distributed "Mechanical Turk" build test system.

One hurdle would be that this needs to be run with an available GPU. Would any of the larger organizations contributing to Torch be willing to donate g2.2xlarge EC2 time?

require 'cunn' fails on OSX 10.10

I'm on OS X 10.10

th> require 'nn'
true
                                                                      [0.0603s]
th> require 'cunn'
/usr/local/share/lua/5.1/trepl/init.lua:318: loop or previous error loading module 'cunn'
stack traceback:
    [C]: in function 'error'
    /usr/local/share/lua/5.1/trepl/init.lua:318: in function 'require'
    [string "require 'cunn'"]:1: in main chunk
    [C]: in function 'xpcall'
    /usr/local/share/lua/5.1/trepl/init.lua:587: in function 'repl'
    /usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:185: in main chunk
    [C]: at 0x010d8957b0
                                                                      [0.1432s]
th>

looking deeper, seems to be an issue with the libcunn.so file

th> require 'libtorch'
{
  ceil : function: 0x0dd82c58
  tan : function: 0x0dd82b90
  test : function: 0x0dd9ca38
  sinh : function: 0x0dd82b68
  loadobj : function: 0x0dd75408
... 

th> require 'libcunn'
/usr/local/share/lua/5.1/trepl/init.lua:318: /usr/local/share/lua/5.1/luarocks/loader.lua:117: error loading module 'libcunn' from file '/usr/local/lib/lua/5.1/libcunn.so':
    dlopen(/usr/local/lib/lua/5.1/libcunn.so, 6): no suitable image found.  Did find:
    /usr/local/lib/lua/5.1/libcunn.so: malformed mach-o image: load command #23 length (0) too small in /usr/local/lib/lua/5.1/libcunn.so
stack traceback:
    [C]: in function 'error'
    /usr/local/share/lua/5.1/trepl/init.lua:318: in function 'require'
    [string "require 'libcunn'"]:1: in main chunk
    [C]: in function 'xpcall'
    /usr/local/share/lua/5.1/trepl/init.lua:587: in function 'repl'
    /usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:185: in main chunk
    [C]: at 0x010d8957b0

I've run into an issue like this before with installing libraries like OpenCV, which required some .so surgery, but I'm a Lua newbie, so I'm not sure exactly how to proceed. OS X 10.10.1, Retina MBP 15".

Any suggestions or further information for debugging required would be appreciated! Would love to get to the bottom of this.

version of torch marked as `scm-1`, so reinstalled each time one installs something else?

version of torch marked as scm-1, so reinstalled each time one installs something else?

When I install something new, eg LUAROCKS_CONFIG=$HOME/torch/install/etc/luarocks/config.lua luarocks install csvigo
Then...
What I expect to happen is that the new package will be installed
But what actually happens is that torch doesn't meet dependency requirements of 'torch >= 7', presumably because it's version is 'scm-1', and thus gets reinstalled

(Note that this reinstallation of torch then fails itself, see torch/torch7#249 )

Maybe add 'eval $(luarocks path --bin)` to end of ~/torch/activate script?

I've been running for 2 weeks now with eval $(luarocks path --bin) at the end of my ~/torch/activate script. And it works great. Even though I have various other luarocks and stuff on my system.

Perhaps it could be worth considering:

  1. create a script ~/torch/activate in the install.sh script?
  2. putting, at the end of this script, eval $(luarocks path --bin)?

It's just an idea. I dont see any issues other than my own that were solved by them.

install.sh failed on Ubuntu 12.04

I got some errors while installing Torch:


Prefix set to /home/alumno/torch/install
Submodule 'exe/env' () registered for path 'exe/env'
Submodule 'exe/luajit-rocks' () registered for path 'exe/luajit-rocks'
Submodule 'exe/qtlua' () registered for path 'exe/qtlua'
Submodule 'exe/trepl' () registered for path 'exe/trepl'
Submodule 'extra/argcheck' () registered for path 'extra/argcheck'
Submodule 'extra/audio' () registered for path 'extra/audio'
Submodule 'extra/cudnn' () registered for path 'extra/cudnn'
Submodule 'extra/cunn' () registered for path 'extra/cunn'
Submodule 'extra/cunnx' () registered for path 'extra/cunnx'
Submodule 'extra/cutorch' () registered for path 'extra/cutorch'
Submodule 'extra/fftw3' () registered for path 'extra/fftw3'
Submodule 'extra/graph' () registered for path 'extra/graph'
Submodule 'extra/graphicsmagick' () registered for path 'extra/graphicsmagick'
Submodule 'extra/iTorch' () registered for path 'extra/iTorch'
Submodule 'extra/nn' () registered for path 'extra/nn'
Submodule 'extra/nngraph' () registered for path 'extra/nngraph'
Submodule 'extra/nnx' () registered for path 'extra/nnx'
Submodule 'extra/sdl2' () registered for path 'extra/sdl2'
Submodule 'extra/signal' () registered for path 'extra/signal'
Submodule 'extra/threads' () registered for path 'extra/threads'
Submodule 'pkg/cwrap' () registered for path 'pkg/cwrap'
Submodule 'pkg/dok' () registered for path 'pkg/dok'
Submodule 'pkg/gnuplot' () registered for path 'pkg/gnuplot'
Submodule 'pkg/image' () registered for path 'pkg/image'
Submodule 'pkg/optim' () registered for path 'pkg/optim'
Submodule 'pkg/paths' () registered for path 'pkg/paths'
Submodule 'pkg/qttorch' () registered for path 'pkg/qttorch'
Submodule 'pkg/sundown' () registered for path 'pkg/sundown'
Submodule 'pkg/sys' () registered for path 'pkg/sys'
Submodule 'pkg/torch' () registered for path 'pkg/torch'
Submodule 'pkg/xlua' () registered for path 'pkg/xlua'
Installing Lua version: LUAJIT21
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_BC_POW':
buildvm_x86.dasc:(.text+0x84b): undefined reference to `lj_wrap_pow'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_log':
buildvm_x86.dasc:(.text+0x269c): undefined reference to `lj_wrap_log'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_log10':
buildvm_x86.dasc:(.text+0x26cb): undefined reference to `lj_wrap_log10'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_exp':
buildvm_x86.dasc:(.text+0x26fa): undefined reference to `lj_wrap_exp'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_sin':
buildvm_x86.dasc:(.text+0x2729): undefined reference to `lj_wrap_sin'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_cos':
buildvm_x86.dasc:(.text+0x2758): undefined reference to `lj_wrap_cos'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_tan':
buildvm_x86.dasc:(.text+0x2787): undefined reference to `lj_wrap_tan'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_asin':
buildvm_x86.dasc:(.text+0x27b6): undefined reference to `lj_wrap_asin'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_acos':
buildvm_x86.dasc:(.text+0x27e5): undefined reference to `lj_wrap_acos'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_atan':
buildvm_x86.dasc:(.text+0x2814): undefined reference to `lj_wrap_atan'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_sinh':
buildvm_x86.dasc:(.text+0x2843): undefined reference to `lj_wrap_sinh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_cosh':
buildvm_x86.dasc:(.text+0x2872): undefined reference to `lj_wrap_cosh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_tanh':
buildvm_x86.dasc:(.text+0x28a1): undefined reference to `lj_wrap_tanh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_pow':
buildvm_x86.dasc:(.text+0x28e5): undefined reference to `lj_wrap_pow'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_atan2':
buildvm_x86.dasc:(.text+0x2929): undefined reference to `lj_wrap_atan2'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_fmod':
buildvm_x86.dasc:(.text+0x296d): undefined reference to `lj_wrap_fmod'
collect2: error: ld returned 1 exit status
make[2]: *** [exe/luajit-rocks/luajit-2.1/luajit] Error 1
make[1]: *** [exe/luajit-rocks/luajit-2.1/CMakeFiles/luajit.dir/all] Error 2
make: *** [all] Error 2
Installing common Lua packages
./install.sh: línea 71: /home/alumno/torch/install/bin/luarocks: No existe el archivo o el directorio
./install.sh: línea 72: /home/alumno/torch/install/bin/luarocks: No existe el archivo o el directorio
./install.sh: línea 73: /home/alumno/torch/install/bin/luarocks: No existe el archivo o el directorio
Installing core Torch packages

Any help?

Install.sh failed on Mac OS 10.10

./install.sh failed with 
-- Generating done
-- Build files have been written to: /Users/alex/torch/pkg/torch/build
[  3%] Built target luaT
[  4%] Linking C shared library libTH.dylib
Undefined symbols for architecture x86_64:
  "_convolve_5x5_sse", referenced from:
      _convolve_5x5 in convolve.c.o
      _convolve_5x5_avx in convolve5x5_avx.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/TH/libTH.dylib] Error 1
make[1]: *** [lib/TH/CMakeFiles/TH.dir/all] Error 2
make: *** [all] Error 2

Xcode fully installed, dependencies installed without failure.
export MACOSX_DEPLOYMENT_TARGET=10.10 before install.sh didn't help.
Any hints or suggestions?

CUDA runtime error when doing simple SpatialConvoltionMM

The script is:

require 'cutorch'
require 'cunn'
m = nn.Sequential()
x = torch.rand(3,8,8):cuda()
m:add(nn.SpatialConvolutionMM(3,1,2,2))
m:cuda()
print(m:forward(x))

I got the exception:

...src/torch-distro/install/share/lua/5.1/nn/Sequential.lua:38: /home/jz1672/torch_src/torch-distro/extra/cutorch/lib/THC/THCTensor.cu(31) : cuda runtime error : invalid argument
stack traceback:
[C]: in function 'updateOutput'
...src/torch-distro/install/share/lua/5.1/nn/Sequential.lua:38: in function 'forward'
[string "n:forward(x)"]:1: in main chunk
[C]: in function 'xpcall'
...ch_src/torch-distro/install/share/lua/5.1/trepl/init.lua:587: in function 'repl'
...rch-distro/install/lib/luarocks/rocks/trepl/scm-1/bin/th:185: in main chunk
[C]: at 0x00405330

I've tested this using different GPU card, namely NVIDIA Tesla and NVIDIA Titan.CUDA version includes 6.0.1 and 6.5.12. Any help is appreciated in advance.

Installation on RHEL 6.7

Hi, I have a server machine (without root access), and want to install Torch on it. Torch dependency file only support Ubuntu, Ferdora, etc, but not Redhat. I wonder how I can do it. Many thanks!

th

I'd like to clarify the construction of the th script (distinct from trepl's th binary) bundled with this distro.
It's my understanding that the th that the user calls is distinct from the th binary included with trepl. The callableth is a small shell script that has the following functionality:

  • Calls the th binary included with trepl using the local luajit install
  • Tells luajit where to look for modules before executing the th binary.
  • Loads all dependencies of trepl before executing the th binary.

Is that what it's doing?

For info, created a travis script for mac

For info, created a travis script for mac, at https://github.com/hughperkins/distro/blob/macbuild/.travis.yml

I'm not quite sure how to add it in parallel to the linux build, but just linking to it, in case useful.

It has a bit of code to upload artifact to s3 at the end, which sooner or later I will start using for my mac build scripts that use torch. Otherwise have to build whole torch each time, which is quite slow (as far as I know travis dependency caching is broken on Mac OS X?)

Problems with smoketest and luajit

Some tests are "disabled" because of a problem with variables and if statements.

In the beginning of the file, the variable LUA is set to the output of which luajit.

LUA=$(which luajit)

Later, to check if we are using luajit, this if-statement is used.

if [ $LUA == 'luajit' ];

The problem is that which outputs full paths and thus the if statement will fail even when luajit is in use.

Put all the environment variables in one script

It would be useful to put all the variable exports in its own file, say, ~/torch/bin/activate. This way, one only needs to add a single line to the shell rc file, and the user can also manually initialize the Torch environment via:

. ~/torch/bin/activate

Installation error on CentOS 6.4

Hi,

I am trying to install Torch on a workstation running CentOS 6.4. However, when I run the script

curl -sk https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash

I get the following error: ==> Only Ubuntu and Fedora distributions are supported.

In your self-contained Torch installation page (https://github.com/torch/distro) I read "Tested on Ubuntu 14.04, CentOS/RHEL 6.3 and OSX".

Is there something I am missing or CenOS is not really supported? If not, is there any workaround?

Thank you for in advance for your support.

Alessandro

Links or load problem about `qt`

Qt based console offers such a easy to display convolutional kernels
(--> what I realized several days ago 0_0, thanks @culurciello 's video on youtube)

torch configuration

  • soumith/torch-distro
  • manually installed deps according to torch/ezinstall
  • platform: OS X 10.9
  • python with pip installed ipython

installation overview:

  • build success
  • Path manually revised to .bash_profile (equivalent in .bashrc)
  • Qt installed with brew

test code

require 'image'
image.display(image.lena())

test output

Success binary tool:

  • qlua
  • macqlua

Error binary tool:

  • th
  • itorch ( cmd/notebook/qtconsole)
Error info:
th> require 'image'
true    
                                                                      [0.0054s]
th> image.display(image.lena())
...ltorch/torch-distro/install/share/lua/5.1/trepl/init.lua:319: module 'qt' not found:No LuaRocks module found for qt
    no field package.preload['qt']
    no file '/Users/russellfei/.luarocks/share/lua/5.1/qt.lua'
    no file '/Users/russellfei/.luarocks/share/lua/5.1/qt/init.lua'
    no file '/usr/local/mltorch/torch-distro/install/share/lua/5.1/qt.lua'
    no file '/usr/local/mltorch/torch-distro/install/share/lua/5.1/qt/init.lua'
    no file './qt.lua'
    no file '/usr/local/mltorch/torch-distro/install/share/luajit-2.1.0-alpha/qt.lua'
    no file '/usr/local/share/lua/5.1/qt.lua'
    no file '/usr/local/share/lua/5.1/qt/init.lua'
    no file '/Users/russellfei/.luarocks/lib/lua/5.1/qt.so'
    no file '/usr/local/mltorch/torch-distro/install/lib/lua/5.1/qt.so'
    no file './qt.so'
    no file '/usr/local/lib/lua/5.1/qt.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
    [C]: in function 'error'
    ...ltorch/torch-distro/install/share/lua/5.1/trepl/init.lua:319: in function 'require'
    ...ltorch/torch-distro/install/share/lua/5.1/image/init.lua:945: in function 'display'
    [string "image.display(image.lena())"]:1: in main chunk
    [C]: in function 'xpcall'
    ...ltorch/torch-distro/install/share/lua/5.1/trepl/init.lua:588: in function 'repl'
    ...rch-distro/install/lib/luarocks/rocks/trepl/scm-1/bin/th:185: in main chunk
    [C]: at 0x01094eb610    

Summary

  • the success two binary tools show that this issue lies in the preload way of qt, I guess.
  • According to previous posts on Google Groups, this issue results from Qt4

Questions

  • What about Qt5? brew version has Qt5, or torch is only designed with Qt4?
  • brew install qt gives apps like QtDesigner, however, torch just connects to qt for visualization,
    which part of qt source/module does torch use? Can we link that path to th or so to directly use qt?

missing dipendencies

Missing dependencies for itorch:
lbase64
luacrypto
uuid
lzmq >= 0.4.2
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/torch/rocks/master - Failed downloading https://raw.githubusercontent.com/torch/rocks/master/manifest - /home/xxxxxx/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master - Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest - /home/xxxxxx/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master/manifest

Error: Could not satisfy dependency: lbase64

Do you want to automatically prepend the Torch install location
to PATH and LD_LIBRARY_PATH in your /home/xxxxxx/.bashrc? (yes/no)
[yes] >>>

this will happen . is it alright?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.