Using pre-compiled binaries
The use of the pre-compiled binaries requires the installation of certain libraries on your computer.
GCC
As the pre-complied binaries are dynamically linked against the GCC library, it has to be installed on your system. An example for the installation of GCC on a Debian or Ubuntu machine is shown here.
sudo apt-get install gcc
Compiling the code
If you want to compile the program from source, you need to install additional programs and libraries.
Rust
Of course you need the Rust programming language itself to compile the code. The installation is explained in detail on the official site.
CMaKe
To compile certain Rust packages, you also need to install cmake.
sudo apt-get install cmake
Gfortran
In addition, the Gfortran compiler must be installed.
sudo apt-get install gfortran
Open-SSL
You need Open-SSL as some used Rust libraries depend on it. You can follow the guide shown here to install Open-SSL on linux.
Linear Algebra Libraries
To be able to compile and run the DIALECT program, it is necessary to download a linear algebra package as a requirement for the ndarray_linalg rust crate. You can choose between Intel MKL, OPENBLAS or Netlib by changing the features of ndarray_linalg in the Cargo.toml file according to the documentation (github page). In our experience, the intel MKL library yields the best performance.
Intel MKL
If you want to compile DIALECT from source using the intel MKL as the linear algebra package, you will need to install it according to the following steps.
You can just download the MKL library from the Intel webpage and after the installation the environment variable $MKLROOT must be set with the setvars.sh
script, which is located in the root
installation directory of MKL.
source /path/to/MKL/setvars.sh
In the case of the older versions you have to execute the mklvars.sh
script that is located
in the installation directory of the MKL Library.
source /path/to/MKL/mklvars.sh intel64
OPENBLAS/Netlib
You need to install the BLAS and LAPACK libraries with the package manager of your operating systems.
sudo apt-get install libopenblas-dev
sudo apt-get install libblas-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install liblapack-dev