Skip to content
Snippets Groups Projects
README.md 1.91 KiB
Newer Older
  • Learn to ignore specific revisions
  • Debolskiy Andrey's avatar
    Debolskiy Andrey committed
                                  INM ParLib v2.2
    
    Debolskiy Andrey's avatar
    Debolskiy Andrey committed
    -------------------------------------------------------------------------------
    
    authors: Val Gloukhov
    
    Debolskiy Andrey's avatar
    Debolskiy Andrey committed
             Institute of Numerical Mathematics of the Russian Academy 
             of Sciences
             (gluhoff@inm.ras.ru)
    
             Evgeny Mortikov
             Research Computing Center of Lomonosov Moscow State University
    
    Debolskiy Andrey's avatar
    Debolskiy Andrey committed
             (evgeny.mortikov@gmail.com)
             Andrey Debolskiy
             Research Computing Center of Lomonosov Moscow State University
             (and.debol@srcc.msu.ru)
    
    Debolskiy Andrey's avatar
    Debolskiy Andrey committed
    
    
    Debolskiy Andrey's avatar
    Debolskiy Andrey committed
    latest update: 22/06/2020
    
    Debolskiy Andrey's avatar
    Debolskiy Andrey committed
    -------------------------------------------------------------------------------
    
    INM ParLib is a high level library facilitating the coding of finite 
    difference and spectral approximation weather and climate prediction 
    models on distributed memory parallel computers.
    
    Debolskiy Andrey's avatar
    Debolskiy Andrey committed
    
    
    Debolskiy Andrey's avatar
    Debolskiy Andrey committed
    Since version 2.3 parlib is built using cmake
    to do so
    
    first clone this repo:
    ```
    git clone http://tesla.parallel.ru/debol/parlib.git
    ```
    to build do:
    ```
    mkdir build && cd build
    ```
    then export your compilers
    ```
    export CC=your_C_compiler
    export CXX=your_CXX_compiler
    export FC=your_fortran_compiler
    ```
    then run cmake to configure build
    ```
    cmake -DCMAKE_INSTALL_PREFIX=/path/to/install/parlib/to -s ../parlib
    ```
    
    Debolskiy Andrey's avatar
    Debolskiy Andrey committed
    on some clusters higher versions of cmake are aliased with cmake3 
    (f.ex. Lomonosov-1,2), so use `cmake3` in that case.
    
    then compile,test and install parlib into directory specified by `CMAKE_INSTALL_PREFIX`
    ```
    make all
    make test
    make install
    ```
    By default cmake will build both shared and static libraries as well
    as fortran wrapper libraries. to toggle which libraries to build use these 
    cmake variables: `BUILD_SHARED_LIBS`,`BUILD_STATIC_LIBS`,`BUILD_FORT_LIBS`.
    For example:
    ```
    cmake  -DBUILD_SHARED_LIBS=OFF -BUILD_STATIC_LIBS=ON -DBUILD_FORT_LIBS=OFF -s ../parlib
    ```
    will build only C static library. You can check other configuration options either 
    by using cmake-gui or using `cmake -LAH `.
    
    Debolskiy Andrey's avatar
    Debolskiy Andrey committed
    
    
    Debolskiy Andrey's avatar
    Debolskiy Andrey committed