Giter VIP home page Giter VIP logo

ezinstall'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.

ezinstall's People

Contributors

abhikandoi2000 avatar andmarios avatar andresy avatar aspratyush avatar astanin avatar atcold avatar b4zz4 avatar cb avatar clementfarabet avatar germank avatar hughperkins avatar jhjin avatar jonyepsilon avatar koraykv avatar kylemcdonald avatar luan-cestari avatar lukeyeager avatar machinaut avatar marcoscoffier avatar mcsaucy avatar mpiffault avatar ozancaglayan avatar rufflewind avatar soumith avatar tudor avatar y0ast avatar zakattacktwitter 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

Watchers

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

ezinstall's Issues

install-deps is far too brittle to use set -e

64430c3 introduced a neat regression. If a user doesn't have a file/directory named /tmp/OpenBLAS, we will reliably fail to build OpenBLAS due to a failure to rm at https://github.com/torch/ezinstall/blob/master/install-deps#L12.

7fd56ce is just an awful hack around this behavior to keep the whole script from bailing. Basically, if anyone new tries to use install-deps, they'll never build OpenBLAS.

As a more philosophical statement, silent failure is soooo user-unfriendly. The script is still kinda janky and silent failure makes it really hard to troubleshoot. As an alternative, you could make a function that runs a command, checks the exit code, and fails with a useful error message (if you use BASH_LINENO, you can even get line numbers) if non-zero.

... As a side note, are there any tests performed for these changes?

Let me know if you have any questions,

-J

dependencies are unversioned

It appears that in all cases Torch's dependencies are unversioned. This is especially problematic when trying to install on academic research clusters. We are running CentOS 6.4.

install lua5 failed

failed build
make[2]: *** [lib/TH/CMakeFiles/TH.dir/THVector.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [lib/TH/CMakeFiles/TH.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.
what is the problem??

Good work

Thanks for sharing this work. It is very useful.

Permission issue

Hi,

I'm trying to install Torch on Ubuntu 14.04.

When running

curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-all | bash

I get permission issues, eg.

Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/local/include/luaconf.h
CMake Error at luajit-2.0/cmake_install.cmake:36 (FILE):
  file INSTALL cannot set permissions on "/usr/local/include/luaconf.h"

if I add sudo, the command does not even seem to run:

sudo curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-all | bash

What's wrong?

Installing on Amazon Linux

I'm trying to get the ezinstall script to run on Amazon Linux, and I'm stuck on compiling OpenBLAS. The output wasn't very helpful, so I'm stuck. Any suggestions?

My first error was:

make[1]: Leaving directory `/tmp/OpenBLAS/ctest'
make[1]: Entering directory `/tmp/OpenBLAS/exports'
perl ./gensymbol linktest  x86_64 _ 0 0 0 0 0 0 "" "" > linktest.c
gcc -O2 -DMAX_STACK_ALLOC=2048 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=8 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME= -DCHAR_NAME=\"_\" -DCHAR_CNAME=\"\" -DNO_AFFINITY -I..  -shared -o ../libopenblas_sandybridgep-r0.2.15.so \
-Wl,--whole-archive ../libopenblas_sandybridgep-r0.2.15.a -Wl,--no-whole-archive \
-Wl,-soname,libopenblas.so.0 -lm -lpthread -lgfortran -lm -lpthread -lgfortran
/usr/bin/ld: /usr/lib/gcc/x86_64-amazon-linux/4.8.3/libgfortran.a(etime.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-amazon-linux/4.8.3/libgfortran.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [../libopenblas_sandybridgep-r0.2.15.so] Error 1
make[1]: Leaving directory `/tmp/OpenBLAS/exports'
make: *** [shared] Error 2
Error. OpenBLAS could not be compiled

...After adding the -fPIC flag I get:

Cloning into 'OpenBLAS'...
remote: Counting objects: 17467, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 17467 (delta 0), reused 0 (delta 0), pack-reused 17461
Receiving objects: 100% (17467/17467), 14.86 MiB | 9.30 MiB/s, done.
Resolving deltas: 100% (12123/12123), done.
Checking connectivity... done.
make: PIC: No such file or directory
make: *** No rule to make target `PIC'.  Stop.
Error. OpenBLAS could not be compiled

Error in install-deps script

Line 95 of the ezinstall/install-deps uses "VERS" instead of VERSION, which causes the CentOS version to fail. I am trying to install torch on an HPC cluster running CentOS 6.6. Since I don't have sudo privilege, I tried to install it inside my directory changing the version. ${centos_major_version} was empty and the version check was failing.

no CUDA-capable device is detected

็็Hi.

Please recommend.

root@tong:/desired/absolute/path/to/deepmask/pretrained/sharpmask# cd $DEEPMASK
root@tong:/desired/absolute/path/to/deepmask# th computeProposals.lua $DEEPMASK/pretrained/deepmask # run DeepMask
THCudaCheck FAIL file=/tmp/luarocks_cutorch-scm-1-3624/cutorch/lib/THC/THCGeneral.c line=20 error=38 : no CUDA-capable device is detected
/usr/local/bin/luajit: /usr/local/share/lua/5.1/trepl/init.lua:384: cuda runtime error (38) : no CUDA-capable device is detected at /tmp/luarocks_cutorch-scm-1-3624/cutorch/lib/THC/THCGeneral.c:20
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/trepl/init.lua:384: in function 'require'
computeProposals.lua:11: in main chunk
[C]: in function 'dofile'
/usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406260

Thank in advance.
mrtortong.

Ubuntu 14.04

After the full install, I get a segmentation fault in torch.test() (that is when I am lucky enough to still be able to require 'torch'):

=> Torch7 has been installed successfully

  + Extra packages have been installed as well:
     $ luarocks list

  + To install more packages, do:
     $ luarocks search --all
     $ luarocks install PKG_NAME

  + Note: on MacOS, it's a good idea to install GCC 4.9 to enable OpenMP.
          You can do this by with brew
     $ brew tap homebrew/versions
     $ brew install gcc49
   then edit ~/.profile with the lines
     export CC=gcc-4.9
     export CXX=g++-4.9
   and make sure you load the new environmental variables into your session
     $ source ~/.profile

  + packages installed:
    - sundown   :  ok
    - cwrap     :  ok
    - paths     :  ok
    - torch     :  ok
    - nn        :  ok
    - dok       :  ok
    - gnuplot   :  ok
    - cutorch   :  ok
    - cunn      :  ok
    - qtlua     :  ok
    - qttorch   :  ok
    - lfs       :  ok
    - penlight  :  ok
    - sys       :  ok
    - xlua      :  ok
    - image     :  ok
    - optim     :  ok
    - cjson     :  ok
    - trepl     :  ok

nicholas14@element-sys4:~/ezinstall$ th -e 'torch.test()'
Running 87 tests    
____________|__________________________________________________________________________  ==> svdSegmentation fault (core dumped)

After that, I logout and login and reinstalled the torch package:

sudo luarocks install torch
...
-- Checking for [blas]
--   Library blas: /usr/lib/libblas.so
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Performing Test BLAS_F2C_DOUBLE_WORKS
-- Performing Test BLAS_F2C_DOUBLE_WORKS - Failed
-- Performing Test BLAS_F2C_FLOAT_WORKS
-- Performing Test BLAS_F2C_FLOAT_WORKS - Success
-- Found a library with BLAS API (generic).
-- Looking for cheev_
-- Looking for cheev_ - found
-- Found a library with LAPACK API. (generic)
-- Performing Test C_HAS_inline
-- Performing Test C_HAS_inline - Success
-- C inline is supported (inline)
-- Performing Test C_HAS_THREAD
-- Performing Test C_HAS_THREAD - Success
...

The login logout is to get (so it ignores the OpenBLAS):

echo $CMAKE_LIBRARY_PATH
*nothing*

Install seems to only work with generic blas/lapack.

OpenBLAS could not be compiled; installing on clean Ubuntu 14.04 install

Hello,

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

it ends with:

Cloning into 'OpenBLAS'...
remote: Counting objects: 16236, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 16236 (delta 0), reused 0 (delta 0), pack-reused 16233
Receiving objects: 100% (16236/16236), 14.55 MiB | 4.74 MiB/s, done.
Resolving deltas: 100% (11164/11164), done.
Checking connectivity... done.
getarch_2nd.c: In function ‘main’:
getarch_2nd.c:12:35: error: ‘SGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function)
     printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
                                   ^
getarch_2nd.c:12:35: note: each undeclared identifier is reported only once for each function it appears in
getarch_2nd.c:13:35: error: ‘SGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function)
     printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N);
                                   ^
getarch_2nd.c:14:35: error: ‘DGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function)
     printf("DGEMM_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M);
                                   ^
getarch_2nd.c:15:35: error: ‘DGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function)
     printf("DGEMM_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N);
                                   ^
getarch_2nd.c:19:35: error: ‘CGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function)
     printf("CGEMM_UNROLL_M=%d\n", CGEMM_DEFAULT_UNROLL_M);
                                   ^
getarch_2nd.c:20:35: error: ‘CGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function)
     printf("CGEMM_UNROLL_N=%d\n", CGEMM_DEFAULT_UNROLL_N);
                                   ^
getarch_2nd.c:21:35: error: ‘ZGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function)
     printf("ZGEMM_UNROLL_M=%d\n", ZGEMM_DEFAULT_UNROLL_M);
                                   ^
getarch_2nd.c:22:35: error: ‘ZGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function)
     printf("ZGEMM_UNROLL_N=%d\n", ZGEMM_DEFAULT_UNROLL_N);
                                   ^
getarch_2nd.c:67:50: error: ‘SGEMM_DEFAULT_Q’ undeclared (first use in this function)
     printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 *  sizeof(float)));
                                                  ^
getarch_2nd.c:68:50: error: ‘DGEMM_DEFAULT_Q’ undeclared (first use in this function)
     printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 *  sizeof(double)));
                                                  ^
getarch_2nd.c:69:50: error: ‘CGEMM_DEFAULT_Q’ undeclared (first use in this function)
     printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 *  sizeof(float)));
                                                  ^
getarch_2nd.c:70:50: error: ‘ZGEMM_DEFAULT_Q’ undeclared (first use in this function)
     printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 *  sizeof(double)));
                                                  ^
make: *** [getarch_2nd] Error 1
make[1]: Entering directory `/tmp/OpenBLAS/interface'
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=saxpy -DASMFNAME=saxpy_ -DNAME=saxpy_ -DCNAME=saxpy -DCHAR_NAME=\"saxpy_\" -DCHAR_CNAME=\"saxpy\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c axpy.c -o saxpy.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=sswap -DASMFNAME=sswap_ -DNAME=sswap_ -DCNAME=sswap -DCHAR_NAME=\"sswap_\" -DCHAR_CNAME=\"sswap\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c swap.c -o sswap.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=scopy -DASMFNAME=scopy_ -DNAME=scopy_ -DCNAME=scopy -DCHAR_NAME=\"scopy_\" -DCHAR_CNAME=\"scopy\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c copy.c -o scopy.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=sscal -DASMFNAME=sscal_ -DNAME=sscal_ -DCNAME=sscal -DCHAR_NAME=\"sscal_\" -DCHAR_CNAME=\"sscal\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c scal.c -o sscal.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=sdot -DASMFNAME=sdot_ -DNAME=sdot_ -DCNAME=sdot -DCHAR_NAME=\"sdot_\" -DCHAR_CNAME=\"sdot\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c dot.c -o sdot.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=sdsdot -DASMFNAME=sdsdot_ -DNAME=sdsdot_ -DCNAME=sdsdot -DCHAR_NAME=\"sdsdot_\" -DCHAR_CNAME=\"sdsdot\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c sdsdot.c -o sdsdot.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=dsdot -DASMFNAME=dsdot_ -DNAME=dsdot_ -DCNAME=dsdot -DCHAR_NAME=\"dsdot_\" -DCHAR_CNAME=\"dsdot\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c dsdot.c -o dsdot.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=sasum -DASMFNAME=sasum_ -DNAME=sasum_ -DCNAME=sasum -DCHAR_NAME=\"sasum_\" -DCHAR_CNAME=\"sasum\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c asum.c -o sasum.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=snrm2 -DASMFNAME=snrm2_ -DNAME=snrm2_ -DCNAME=snrm2 -DCHAR_NAME=\"snrm2_\" -DCHAR_CNAME=\"snrm2\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c nrm2.c -o snrm2.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=smax -DASMFNAME=smax_ -DNAME=smax_ -DCNAME=smax -DCHAR_NAME=\"smax_\" -DCHAR_CNAME=\"smax\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c -UUSE_ABS -UUSE_MIN max.c -o smax.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=samax -DASMFNAME=samax_ -DNAME=samax_ -DCNAME=samax -DCHAR_NAME=\"samax_\" -DCHAR_CNAME=\"samax\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c -DUSE_ABS -UUSE_MIN max.c -o samax.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=ismax -DASMFNAME=ismax_ -DNAME=ismax_ -DCNAME=ismax -DCHAR_NAME=\"ismax_\" -DCHAR_CNAME=\"ismax\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c -UUSE_ABS -UUSE_MIN imax.c -o ismax.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=isamax -DASMFNAME=isamax_ -DNAME=isamax_ -DCNAME=isamax -DCHAR_NAME=\"isamax_\" -DCHAR_CNAME=\"isamax\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c -DUSE_ABS -UUSE_MIN imax.c -o isamax.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=smin -DASMFNAME=smin_ -DNAME=smin_ -DCNAME=smin -DCHAR_NAME=\"smin_\" -DCHAR_CNAME=\"smin\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c -UUSE_ABS -DUSE_MIN max.c -o smin.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=samin -DASMFNAME=samin_ -DNAME=samin_ -DCNAME=samin -DCHAR_NAME=\"samin_\" -DCHAR_CNAME=\"samin\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c -DUSE_ABS -DUSE_MIN max.c -o samin.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=ismin -DASMFNAME=ismin_ -DNAME=ismin_ -DCNAME=ismin -DCHAR_NAME=\"ismin_\" -DCHAR_CNAME=\"ismin\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c -UUSE_ABS -DUSE_MIN imax.c -o ismin.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=isamin -DASMFNAME=isamin_ -DNAME=isamin_ -DCNAME=isamin -DCHAR_NAME=\"isamin_\" -DCHAR_CNAME=\"isamin\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c -DUSE_ABS -DUSE_MIN imax.c -o isamin.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=srot -DASMFNAME=srot_ -DNAME=srot_ -DCNAME=srot -DCHAR_NAME=\"srot_\" -DCHAR_CNAME=\"srot\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c rot.c -o srot.o
gcc -c -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=srotg -DASMFNAME=srotg_ -DNAME=srotg_ -DCNAME=srotg -DCHAR_NAME=\"srotg_\" -DCHAR_CNAME=\"srotg\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX rotg.c -o srotg.o
gcc -c -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=srotm -DASMFNAME=srotm_ -DNAME=srotm_ -DCNAME=srotm -DCHAR_NAME=\"srotm_\" -DCHAR_CNAME=\"srotm\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX rotm.c -o srotm.o
gcc -c -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=srotmg -DASMFNAME=srotmg_ -DNAME=srotmg_ -DCNAME=srotmg -DCHAR_NAME=\"srotmg_\" -DCHAR_CNAME=\"srotmg\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX rotmg.c -o srotmg.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=saxpby -DASMFNAME=saxpby_ -DNAME=saxpby_ -DCNAME=saxpby -DCHAR_NAME=\"saxpby_\" -DCHAR_CNAME=\"saxpby\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c axpby.c -o saxpby.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_isamax -DASMFNAME=cblas_isamax_ -DNAME=cblas_isamax_ -DCNAME=cblas_isamax -DCHAR_NAME=\"cblas_isamax_\" -DCHAR_CNAME=\"cblas_isamax\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c -DUSE_ABS -UUSE_MIN imax.c -o cblas_isamax.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_sasum -DASMFNAME=cblas_sasum_ -DNAME=cblas_sasum_ -DCNAME=cblas_sasum -DCHAR_NAME=\"cblas_sasum_\" -DCHAR_CNAME=\"cblas_sasum\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c asum.c -o cblas_sasum.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_saxpy -DASMFNAME=cblas_saxpy_ -DNAME=cblas_saxpy_ -DCNAME=cblas_saxpy -DCHAR_NAME=\"cblas_saxpy_\" -DCHAR_CNAME=\"cblas_saxpy\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c axpy.c -o cblas_saxpy.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_scopy -DASMFNAME=cblas_scopy_ -DNAME=cblas_scopy_ -DCNAME=cblas_scopy -DCHAR_NAME=\"cblas_scopy_\" -DCHAR_CNAME=\"cblas_scopy\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c copy.c -o cblas_scopy.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_sdot -DASMFNAME=cblas_sdot_ -DNAME=cblas_sdot_ -DCNAME=cblas_sdot -DCHAR_NAME=\"cblas_sdot_\" -DCHAR_CNAME=\"cblas_sdot\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c dot.c -o cblas_sdot.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_sdsdot -DASMFNAME=cblas_sdsdot_ -DNAME=cblas_sdsdot_ -DCNAME=cblas_sdsdot -DCHAR_NAME=\"cblas_sdsdot_\" -DCHAR_CNAME=\"cblas_sdsdot\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c sdsdot.c -o cblas_sdsdot.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_dsdot -DASMFNAME=cblas_dsdot_ -DNAME=cblas_dsdot_ -DCNAME=cblas_dsdot -DCHAR_NAME=\"cblas_dsdot_\" -DCHAR_CNAME=\"cblas_dsdot\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c dsdot.c -o cblas_dsdot.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_srot -DASMFNAME=cblas_srot_ -DNAME=cblas_srot_ -DCNAME=cblas_srot -DCHAR_NAME=\"cblas_srot_\" -DCHAR_CNAME=\"cblas_srot\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c rot.c -o cblas_srot.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_srotg -DASMFNAME=cblas_srotg_ -DNAME=cblas_srotg_ -DCNAME=cblas_srotg -DCHAR_NAME=\"cblas_srotg_\" -DCHAR_CNAME=\"cblas_srotg\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c rotg.c -o cblas_srotg.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_srotm -DASMFNAME=cblas_srotm_ -DNAME=cblas_srotm_ -DCNAME=cblas_srotm -DCHAR_NAME=\"cblas_srotm_\" -DCHAR_CNAME=\"cblas_srotm\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c rotm.c -o cblas_srotm.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_srotmg -DASMFNAME=cblas_srotmg_ -DNAME=cblas_srotmg_ -DCNAME=cblas_srotmg -DCHAR_NAME=\"cblas_srotmg_\" -DCHAR_CNAME=\"cblas_srotmg\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c rotmg.c -o cblas_srotmg.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_sscal -DASMFNAME=cblas_sscal_ -DNAME=cblas_sscal_ -DCNAME=cblas_sscal -DCHAR_NAME=\"cblas_sscal_\" -DCHAR_CNAME=\"cblas_sscal\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c scal.c -o cblas_sscal.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_sswap -DASMFNAME=cblas_sswap_ -DNAME=cblas_sswap_ -DCNAME=cblas_sswap -DCHAR_NAME=\"cblas_sswap_\" -DCHAR_CNAME=\"cblas_sswap\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c swap.c -o cblas_sswap.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_snrm2 -DASMFNAME=cblas_snrm2_ -DNAME=cblas_snrm2_ -DCNAME=cblas_snrm2 -DCHAR_NAME=\"cblas_snrm2_\" -DCHAR_CNAME=\"cblas_snrm2\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c nrm2.c -o cblas_snrm2.o
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=cblas_saxpby -DASMFNAME=cblas_saxpby_ -DNAME=cblas_saxpby_ -DCNAME=cblas_saxpby -DCHAR_NAME=\"cblas_saxpby_\" -DCHAR_CNAME=\"cblas_saxpby\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -DCBLAS -c axpby.c -o cblas_saxpby.o
gcc -c -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=sgemv -DASMFNAME=sgemv_ -DNAME=sgemv_ -DCNAME=sgemv -DCHAR_NAME=\"sgemv_\" -DCHAR_CNAME=\"sgemv\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -o sgemv.o gemv.c
gcc -c -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=sger -DASMFNAME=sger_ -DNAME=sger_ -DCNAME=sger -DCHAR_NAME=\"sger_\" -DCHAR_CNAME=\"sger\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX ger.c -o sger.o
gcc -c -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=strsv -DASMFNAME=strsv_ -DNAME=strsv_ -DCNAME=strsv -DCHAR_NAME=\"strsv_\" -DCHAR_CNAME=\"strsv\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX trsv.c -o strsv.o
gemv.c: In function ‘sgemv_’:
gemv.c:232:41: error: ‘GEMM_MULTITHREAD_THRESHOLD’ undeclared (first use in this function)
   if ( MNK <= (24.0 * 24.0  * (double) (GEMM_MULTITHREAD_THRESHOLD*GEMM_MULTITHREAD_THRESHOLD) )  )
                                         ^
gemv.c:232:41: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [sgemv.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/tmp/OpenBLAS/interface'
make: *** [libs] Error 1
Error. OpenBLAS could not be compiled

I am new to Linux and do not know what to do, any suggestions would be greatly appreciated.

Thank you

OpenBLAS could not be compiled

Error running ezinstall on Ubuntu 14.04:

Cloning into 'OpenBLAS'...
Makefile.system:370: *** OpenBLAS: Cannot set both USE_OPENMP=1 and USE_THREAD=0. The USE_THREAD=0 is only for building single thread version.. Stop.
Error. OpenBLAS could not be compiled

Seems to be related to this commit:

OpenMathLib/OpenBLAS@771b18a

cunn breaks with new script?

I freshly installed cunn with the new script (install-luajit+torch) on Ubuntu 13.04. Cleaned up the old install, and I dont have luajit or lua installed on the machine.

After, I see the following error.

luajit -lcunn
luajit: error loading module 'libcunn' from file '/usr/local/lib/lua/5.1/libcunn.so':
/usr/local/lib/lua/5.1/libcunn.so: undefined symbol: _Z14luaL_optnumberP9lua_Stateid
stack traceback:
[C]: at 0x7f3bbd10ccb4
[C]: in function 'require'
/usr/local/share/lua/5.1/cunn/init.lua:3: in main chunk
[C]: at 0x7f3bbd10cf6c
[C]: at 0x00402f44

Is it just on my end?

module 'parallel' not found

I don't know if this is still in use, but th -lparallel gives:

could not load parallel, skipping
/usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:48: module 'parallel' not found:No LuaRocks module found for parallel
        no field package.preload['parallel']
        no file '/root/.luarocks/share/lua/5.1/parallel.lua'
        no file '/root/.luarocks/share/lua/5.1/parallel/init.lua'
        no file '/usr/local/share/lua/5.1/parallel.lua'
        no file '/usr/local/share/lua/5.1/parallel/init.lua'
        no file './parallel.lua'
        no file '/usr/local/share/luajit-2.0.4/parallel.lua'
        no file '/root/.luarocks/lib/lua/5.1/parallel.so'
        no file '/usr/local/lib/lua/5.1/parallel.so'
        no file './parallel.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        /usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:48: in function </usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:48>
        [C]: in function 'xpcall'
        /usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:48: in main chunk
        [C]: at 0x00405850

error when use ezinstall on RHEL based system

The Lua version matters, when I update the latest torch toolsets, everything works fine.
However, when I use th to require modules, there's error message like this

$ th

  ______             __   |  Torch7                                   
 /_  __/__  ________/ /   |  Scientific computing for LuaJIT.         
  / / / _ \/ __/ __/ _ \  |                                           
 /_/  \___/_/  \__/_//_/  |  https://github.com/torch   
                          |  http://torch.ch            

th> require 'image'
/usr/local/share/lua/5.1/image/init.lua:32: loop or previous error loading module 'torch'
stack traceback:
    [C]: in function 'require'
    /usr/local/share/lua/5.1/image/init.lua:32: in main chunk
    [C]: in function 'f'
    [string "local f = function() return require 'image' e..."]:1: in main chunk
    [C]: in function 'xpcall'
    /usr/local/share/lua/5.1/trepl/init.lua:553: in function </usr/local/share/lua/5.1/trepl/init.lua:489>

This error could be found at mailing list on lua-users.org, the slightly difference of lua-5.1 and lua-5.2 has explicit output-5.2 works but 5.1 not.

Something just like the issue I came across before, which is about the binding of lua and luarocks.

Is there any hope to eliminate this bug?

Thx~

OPEN_MP error when running

So in 251fdab the USE_OPENMP=1 flag is removed. This results in the following endlessly printed warning during running (Ubuntu 14.04):

OpenBLAS Warning : Detect OpenMP Loop and this application may hang. Please rebuild the library with USE_OPENMP=1 option.

Just forcing the amount of threads to be 1 fixes this:

export OMP_NUM_THREADS=1

I am not sure if this is a proper fix for in the script though.

torch does not have Tensor field

Hi,

I am trying to install torch on Mac OS X 10.10.

I run the script and it seems installed successfully.

.....
packages installed:
- sundown : ok
- cwrap : ok
- paths : ok
- torch : ok
- nn : ok
- dok : ok
- gnuplot : ok
- qtlua : ok
- qttorch : ok
- lfs : ok
- penlight : ok
- sys : ok
- xlua : ok
- image : ok
- optim : ok
- cjson : ok
- trepl : ok

INFO: Torch installed successfully.
.....

But when I try to type torch.Tensor, it has the error:

screen shot 2015-09-16 at 6 40 33 pm

Could you please help me to figure out what is wrong?

Thanks!!!

is ipython a requirement?

After running this script a few times recently on fresh machines, I get:

bash: line 216: ipython: command not found
WARNING: Your ipython version is too old.  Type "ipython --version" to see this.  Should be at least version 2

Then I go back, and run:

sudo easy_install pip
sudo pip install ipython

and re-run the install-deps. But it's unclear if iPython is necessary, or only if it needs to be up to date if I want to use it with Torch.

Does not install on Ubuntu 15.04

I followed the directions at http://torch.ch/docs/getting-started.html. They claim to work on "Ubuntu 12+" but they seem to be quite out of date and not work on 15.04.

Here's what I get on standard error when I try to run Torch's install.sh at the end:

Warning: unmatched variable LUALIB
Warning: unmatched variable LUALIB
Warning: unmatched variable LUALIB
CMake Error at /usr/share/cmake-3.0/Modules/FindCUDA.cmake:568 (message):
  Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
  CMakeLists.txt:7 (FIND_PACKAGE)



Error: Build error: Failed building.

Missing dependencies for cunn:
cutorch >= 1.0

Cloning into 'cutorch'...
CMake Error at /usr/share/cmake-3.0/Modules/FindCUDA.cmake:568 (message):
  Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
  CMakeLists.txt:7 (FIND_PACKAGE)



Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec - Build error: Failed building.

Missing dependencies for cunnx:
cunn >= 1.0
cutorch >= 1.0


Missing dependencies for cunn:
cutorch >= 1.0

Cloning into 'cutorch'...
CMake Error at /usr/share/cmake-3.0/Modules/FindCUDA.cmake:568 (message):
  Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
  CMakeLists.txt:7 (FIND_PACKAGE)



Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/cunn-scm-1.rockspec - Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec - Build error: Failed building.

Missing dependencies for cudnn:
cutorch 

Cloning into 'cutorch'...
CMake Error at /usr/share/cmake-3.0/Modules/FindCUDA.cmake:568 (message):
  Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
  CMakeLists.txt:7 (FIND_PACKAGE)



Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec - Build error: Failed building.
SOX_INCLUDE_DIR: SOX_INCLUDE_DIR-NOTFOUND
SOX_LIBRARIES: SOX_LIBRARIES-NOTFOUND
FFTW_INCLUDE_DIR: FFTW_INCLUDE_DIR-NOTFOUND
FFTW_LIBRARIES: FFTW_LIBRARIES-NOTFOUND
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FFTW_INCLUDE_DIR
   used as include directory in directory /home/rspeer/torch/extra/audio
   used as include directory in directory /home/rspeer/torch/extra/audio
   used as include directory in directory /home/rspeer/torch/extra/audio
   used as include directory in directory /home/rspeer/torch/extra/audio
FFTW_LIBRARIES
    linked by target "audio" in directory /home/rspeer/torch/extra/audio
SOX_INCLUDE_DIR
   used as include directory in directory /home/rspeer/torch/extra/audio
   used as include directory in directory /home/rspeer/torch/extra/audio
   used as include directory in directory /home/rspeer/torch/extra/audio
   used as include directory in directory /home/rspeer/torch/extra/audio
SOX_LIBRARIES
    linked by target "audio" in directory /home/rspeer/torch/extra/audio
    linked by target "sox" in directory /home/rspeer/torch/extra/audio

make: *** No targets specified and no makefile found.  Stop.

Error: Build error: Failed building.

Missing dependencies for itorch:
luacrypto 
uuid 
lzmq >= 0.4.2


Error: Failed installing dependency: https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luacrypto-0.3.2-1.src.rock - Could not find expected file openssl/evp.h, or openssl/evp.h for OPENSSL -- you may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command. Example: luarocks install luacrypto OPENSSL_DIR=/usr/local

bash: line 2: syntax error near unexpected token `newline'

We're currently using the install-deps script for DIGITS TravisCI builds. It's started failing on me in the last two days with errors like this (but only intermittently?):

$ travis_wait ./scripts/travis/install-torch-wrapper.sh $(pwd)/deps/torch $(pwd)/torch-install-log.txt
Still running (1 of 20): ./scripts/travis/install-torch-wrapper.sh /home/travis/build/lukeyeager/DIGITS/deps/torch /home/travis/build/lukeyeager/DIGITS/torch-install-log.txt
The command ./scripts/travis/install-torch-wrapper.sh /home/travis/build/lukeyeager/DIGITS/deps/torch /home/travis/build/lukeyeager/DIGITS/torch-install-log.txt exited with 1.
Log:
+++'[' 2 -ne 2 ']'
+++INSTALL_DIR=/home/travis/build/lukeyeager/DIGITS/deps/torch
+++LOG_FILE=/home/travis/build/lukeyeager/DIGITS/torch-install-log.txt
+++./scripts/travis/install-torch.sh /home/travis/build/lukeyeager/DIGITS/deps/torch
+++cat /home/travis/build/lukeyeager/DIGITS/torch-install-log.txt
++++'[' 1 -ne 1 ']'
++++INSTALL_DIR=/home/travis/build/lukeyeager/DIGITS/deps/torch
++++mkdir -p /home/travis/build/lukeyeager/DIGITS/deps/torch
++++bash
++++curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps
bash: line 2: syntax error near unexpected token `newline'
bash: line 2: `<?xml version="1.0" encoding="utf-8"?>'
+++false
/home/travis/build.sh: line 112:  5605 Terminated              travis_jigger $! $timeout $cmd
The command "travis_wait ./scripts/travis/install-torch-wrapper.sh $(pwd)/deps/torch $(pwd)/torch-install-log.txt" failed and exited with 1 during .
Your build has been stopped.

https://travis-ci.org/lukeyeager/DIGITS/builds/100877937

Can we fix this, or do I need to figure out how to use a different Torch install mechanism? The README says the repo is deprecated, but according to this comment the install-deps script should still work:

The install-deps script is still in use, but the rest of the repo is indeed deprecated.
#79 (comment)

This could possibly be an issue on my end, totally unrelated to you. I'm looking into it...

on fresh ubuntu machines /usr/local/lib not in ldconfig

On newly installed ubuntu machines, /usr/local/lib is not in ldconfig,
so luarocks and luajit fail to execute because they cannot find libluajit.so

Solution is to manually add /usr/local/lib to /etc/ld.so.conf before-hand.
(you cant just export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH in the script, as that wont work for root user (for sudo luarocks install [foo])

OpenBLAS could not be compiled on SkyLake

According to OpenMathLib/OpenBLAS#632, and as of 10/1/2015, the build system for OpenBLAS cannot recognize SkyLake CPUs, and for SkyLake the option TARGET=HASWELL must be specified for makeing OpenBLAS. I am using Ubuntu 15.04 and an Intel Core i7 6600 CPU and failed with the error

Cloning into 'OpenBLAS'...
remote: Counting objects: 17300, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 17300 (delta 2), reused 0 (delta 0), pack-reused 17292
Receiving objects: 100% (17300/17300), 14.80 MiB | 3.03 MiB/s, done.
Resolving deltas: 100% (11998/11998), done.
Checking connectivity... done.
getarch_2nd.c: In function ‘main’:
getarch_2nd.c:12:35: error: ‘SGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function)
printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
^
getarch_2nd.c:12:35: note: each undeclared identifier is reported only once for each function it appears in
getarch_2nd.c:13:35: error: ‘SGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function)
printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N);
^
getarch_2nd.c:14:35: error: ‘DGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function)
printf("DGEMM_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M);
^
getarch_2nd.c:15:35: error: ‘DGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function)
printf("DGEMM_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N);
^
getarch_2nd.c:19:35: error: ‘CGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function)
printf("CGEMM_UNROLL_M=%d\n", CGEMM_DEFAULT_UNROLL_M);
^
getarch_2nd.c:20:35: error: ‘CGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function)
printf("CGEMM_UNROLL_N=%d\n", CGEMM_DEFAULT_UNROLL_N);
^
getarch_2nd.c:21:35: error: ‘ZGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function)
printf("ZGEMM_UNROLL_M=%d\n", ZGEMM_DEFAULT_UNROLL_M);
^
getarch_2nd.c:22:35: error: ‘ZGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function)
printf("ZGEMM_UNROLL_N=%d\n", ZGEMM_DEFAULT_UNROLL_N);
^
getarch_2nd.c:67:50: error: ‘SGEMM_DEFAULT_Q’ undeclared (first use in this function)
printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 * sizeof(float)));
^
getarch_2nd.c:68:50: error: ‘DGEMM_DEFAULT_Q’ undeclared (first use in this function)
printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 * sizeof(double)));
^
getarch_2nd.c:69:50: error: ‘CGEMM_DEFAULT_Q’ undeclared (first use in this function)
printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 * sizeof(float)));
^
getarch_2nd.c:70:50: error: ‘ZGEMM_DEFAULT_Q’ undeclared (first use in this function)
printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 * sizeof(double)));
^
make: *** [getarch_2nd] Error 1
Makefile:131: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.. 中止.
Error. OpenBLAS could not be compiled    

I actually solved this problem by adding the TARGET=HASWELL option, therefore editing install-deps as

14,16c14,16
<         make NO_AFFINITY=1 USE_OPENMP=0 USE_THREAD=0
<     else
<         make NO_AFFINITY=1 USE_OPENMP=1

---
>         make NO_AFFINITY=1 USE_OPENMP=0 USE_THREAD=0 TARGET=HASWELL
>     else 
>         make NO_AFFINITY=1 USE_OPENMP=1 TARGET=HASWELL

Which let OpenBLAS compile successfully.

I believe this is more of an OpenBLAS problem, but the original issue on OpenBLAS is closed, but still this problem seems still not to be solved now, so please let me post this issue here. A quick fix for ezinstall may be to obtain the architecture name during the build (I believe OpenBLAS does it in getarch.c) but I also believe that should ultimately be dealt by the OpenBLAS build system.

Add a warning for Archlinux users

An Archlinux user attempting to install dependencies via the install-deps script without an up-to-date package lists is likely going into errors when pacman will try to fetch the required packages (as I did).
This is because Arch is a rolling release, and the package lists are permanently updated.

As stated here , it is strongly discouraged to refresh the package list without updating the system (because dependencies conflicts would certainly result of it).
And naturally it would be a really bad thing to update the system of the user without it's permission.

All those to say it would be good to add a warning message on the archlinux part, telling the user to update it's system prior to let the script do it's job.

libqt4-core libqt4-gui not up-to-date

Apparently libqt4-core libqt4-gui are not needed anymore and will result in

E: Unable to locate package libqt4-core
E: Unable to locate package libqt4-gui

Torch install on Fedora 22 - patch for install-deps

  • Existing install-deps script supports Fedora 20
  • Following is the patch that makes the script compatible with Fedora 22:
177,184c177,183
<         if [[ $fedora_major_version == '20' ]]; then
<             sudo yum install -y cmake curl readline-devel ncurses-devel \
<                                 gcc-c++ gcc-gfortran git gnuplot unzip \
<                                 nodejs npm libjpeg-turbo-devel libpng-devel \
<                                 ImageMagick GraphicsMagick-devel fftw-devel \
<                                 sox-devel sox zeromq3-devel \
<                                 qt-devel qtwebkit-devel sox-plugins-freeworld \
<                                 ipython

---
>         if [[ $fedora_major_version == '22' ]]; then
>             sudo dnf install -y cmake curl readline-devel ncurses-devel \
>                       gcc-c++ gcc-gfortran git gnuplot unzip \
>                       nodejs npm libjpeg-turbo-devel libpng-devel \
>                       ImageMagick GraphicsMagick-devel fftw-devel \
>                       sox-devel sox qt-devel qtwebkit-devel \
>                       python-ipython czmq czmq-devel
222a222
> 

Cannot find repos: missing config.lua?

My installation of deps is fine, all solid, but when I install luajit and luarocks from here, problems:

$ luarocks --version
/usr/local/bin/luarocks 2.1.0
LuaRocks main command-line interface

$ luarocks
LuaRocks 2.1.0, a module deployment system for Lua
.....
CONFIGURATION
System configuration file: /usr/local/etc/luarocks/config-5.1.lua (ok)
User configuration file: /Users/euge/.luarocks/config.lua (not found)

$ lua -v
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio

$ luajit -v
LuaJIT 2.0.2 -- Copyright (C) 2005-2013 Mike Pall. http://luajit.org/

$ which luarocks
/usr/local/bin/luarocks

$ /usr/local/bin/luarocks install sundown
Error: No results matching query were found.

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.