Install Dependencies
TomoATT is a C++ library, developed for working efficiently with parallel computing. For achieving a good IO performance, installing HDF5 with parallel IO option is highly recomended. TomoATT can also run in ASCII IO mode, but all the IO processes are run independently in this case rather than collectively, which causes a slowdown in IO performance.
Dependencies
- git
- C++ compiler which supports C++17 (version 7.0 or higher for GNU compiler. version 19.0 or higher for Intel compiler. Clang is also supported.)
- CMake (opens in a new tab) (version 3.10 or higher)
- MPI v3.0 or higher
- HDF5 (opens in a new tab) (parallel IO needs to be enabled)
- (optional) PyTomoATT (opens in a new tab) (used in pre/post processes examples)
Install compiler and CMake (with GNU compiler)
bash sudo apt install build-essential cmake
Install MPI and HDF5 with parallel IO option
Using Conda
Conda (opens in a new tab) provides us a convenient way to install the dependencies, which is easier and faster than installing them from source codes.
Create a conda environment
conda create --name tomoatt --channel conda-forge
Then activate the virtual environment
source activate tomoatt
Install the required libraries in the created virtual environment
conda install cxx-compiler cmake yaml-cpp openmpi "hdf5=*=mpi_openmpi*" -c conda-forge