The Python 3 package may be installed directly if only post-processing
of existing data is desired:
...
...
@@ -75,9 +75,9 @@ of existing data is desired:
(add `--user` or `sudo` as appropriate).
`setup.py` uses the `setuptools` package for dependency resolution.
------------
----------------------
Full installation
------------
----------------------
The C++ library requires a number of dependencies, that `CMake` will
search for before compilation and installation.
...
...
@@ -87,9 +87,9 @@ We provide instructions for local compilation of FFTW and HDF5, because
default versions packaged with Linux variants are typically inadequately
configured.
These installation steps assume that you have a working MPI compiler,
These installation steps assume that you have a working C/C++ MPI compiler,
properly configured on your system (i.e. the various configure scripts
are able to find it), as well as the `cmake` tool.
are able to find it), as well as an installation of Python 3.
The list is a work in progress, please contact us
(Cristian.Lalescu@mpcdf.mpg.de) if the procedure fails at any step of the
process.
...
...
@@ -101,7 +101,7 @@ this in detail. Some default OpenMPI3 installations will not work.
Detailed full installation instructions:
**Preparation**
**Installation of requirements**
TurTLE has the following requirements:
...
...
@@ -111,9 +111,11 @@ TurTLE has the following requirements:
3. cmake version > 3.12
We recommend installing these requirements on a local fast partition. In the following, we refer to their locations as `FFTW_DIR`, `HDF5_DIR` and `CMAKE_DIR`.
1. **Installation of FFTW**
Download latest version from http://www.fftw.org/.
To compile and install in custom location FFTW_DIR, execute the following commands in order, feel free to customize
To compile and install it in custom location FFTW_DIR, execute the following commands in order, feel free to customize
optimisation flags for your own computer (see http://www.fftw.org/fftw3_doc/Installation-on-Unix.html):
.. code:: bash
...
...
@@ -124,6 +126,7 @@ TurTLE has the following requirements:
TurTLE will try to find FFTW using the FindFFTW from the Morse project.
If the package is installed in a non standard location, you should
...
...
@@ -131,29 +134,30 @@ TurTLE has the following requirements:
`FFTW_LIBDIR`, `FFTW_OPEMMP_LIBDIR` and `FFTW_MPI_LIBDIR`.
2. **Installation of HDF5**
Download HDF5 from https://www.hdfgroup.org/downloads/hdf5/. To compile and install in custom location HDF5_ROOT, execute the following commands in order:
Download HDF5 from https://www.hdfgroup.org/downloads/hdf5/. To compile and install it in custom location HDF5_DIR, execute the following commands in order:
.. code:: bash
./configure --prefix=HDF5_ROOT --enable-parallel
./configure --prefix=HDF5_DIR --enable-parallel
make
make install
Since TurTLE is using parallel I/O, HDF5 needs to be compiled with the "--enable-parallel" flag.
..
TurTLE will try to find HDF5 using the regular FindHDF5, which
searches system folders, or `HDF5_ROOT`.
searches system folders, or `HDF5_DIR`.
3. **Installation of cmake**
TurTLE requires `cmake` version > 3.12, which should be available
from your default package manager.
If not possible, then download cmake at https://cmake.org/cmake/resources/software.html. To compile and install in custom location CMAKE_DIR, execute the following commands in order:
Check if cmake (version >3.12) is available from your default package manager.
If not, then download cmake at https://cmake.org/cmake/resources/software.html. To compile and install it in custom location CMAKE_DIR, execute the following commands in order:
.. code:: bash
./bootstrap --prefix=CMAKE_DIR
make
make install
..
The value of `PREFIX` used above is only relevant to later executing
the `cmake` binary (which can be found under `${PREFIX}/bin` after
...
...
@@ -172,46 +176,55 @@ TurTLE has the following requirements:
* `MPICXX` - Preferred MPI C++ compiler
* `HDF5_ROOT` - Base directory of HDF5
**Installation**
**Installation of TurTLE**
1. We recommend creating a virtual environment for TurTLE. To do this,
choose an installation location INSTALL_LOC on a local fast partition
(Under unix systems, this could be e.g. `~/.local`) and a name for the
environment VENV_NAME (e.g. `turtle-production`). To create the virtual environment, execute:
environment VENV_NAME (e.g. `turtle-production`). To cCC=${GCC_HOME}/bin/gcc
In the following, we refer to the path `INSTALL_LOC/VENV_NAME` as `TURTLE_DIR`.
.. code:: bash
python -m venv INSTALL_LOC/VENV_NAME
In the following, we refer to the path `INSTALL_LOC/VENV_NAME` as `TurTLE_DIR`.
2. Clone turtle repository.
2. Choose a location for the source code, enter it and clone turtle repository by