6. User’s setup (Cluster deployers and entry/medium level users of GNU/Linux)

Cluster deployers and users of GNU/Linux other than Ubuntu should setup Veles via deploy.sh script.

Note

If you are using Ubuntu, follow User’s setup on Ubuntu (entry/medium level users).

The first step depends on how one gets the Veles sources.

6.1. Via Git

sudo apt-get install git
git clone https://github.com/Samsung/veles.git
cd veles
./init

Execution of init script is neccessary, because Veles submodules require special processing.

6.2. Via the redistributable package

mkdir Veles && cd Veles && tar -xf ../Veles.tar.xz

In case with Git, one can make his or her own Veles redistributable package through running:

deploy/deploy.sh pre

6.3. Prerequisites

orphan:

6.3.1. Install required CentOS packages

redhat-lsb-core blas-devel lapack-devel xz-devel libcurl-devel expat-devel \
gettext-devel openssl-devel zlib-devel autoconf automake libtool git \
subversion libpng-devel freetype-devel gcc-gfortran libffi-devel snappy-devel \
libxml2-devel libxslt-devel gcc perl-ExtUtils-MakeMaker patch gcc-c++ bzip2-devel
orphan:

6.3.2. Install required Fedora packages

redhat-lsb-core libcurl-devel expat-devel gettext-devel openssl-devel zlib-devel autoconf automake libtool \
subversion libpng-devel freetype-devel lapack-devel blas-devel gcc-gfortran libffi-devel snappy-devel \
libxml2-devel libxslt-devel lzma-devel gcc perl-ExtUtils-MakeMaker patch gcc-c++ bzip2-devel git

6.4. Bootstrapping

Execute the following script:

deploy/deploy.sh post

It will build the needed environment, including Python interpreter, dependency libraries, packages, etc. If everything is alright, proceed to the next step, otherwise, please send an email with the script output (deploy.sh post &> deploy.log) to gmarkhor@gmail.com.

The virtual environment will be located inside deploy/pyenv directory.

6.5. Going to the virtual environment

To work with Veles, you will need to execute the following command every time you open a new console session:

cd <veles root>/deploy
. ./init-pyenv

You may include these two lines into your .bashrc.

6.6. PYTHONPATH

Optionally, you can add Veles root path to your PYTHONPATH for convenience. Add export PYTHONPATH=$PYTHONPATH:<veles root path> to your .bashrc. This allows running python3 -m veles from any directory other than Veles root.

Proceed to OpenCL setup.