Skip to content

Latest commit

 

History

History
84 lines (54 loc) · 1.76 KB

installation_spack.md

File metadata and controls

84 lines (54 loc) · 1.76 KB

Installation of femus dependencies using spack

System requirements

These packages must be available for the following steps

OpenSUSE Leap 15.4/15.5

  • gcc10

  • gcc10-c++

  • gcc10-fortran

  • python3

Clone the NumericPlatform repository

# select a directory where to install (absolute path)
export SOFTWARE_DIR=<software_dir>

cd $SOFTWARE_DIR
git clone https://github.com/FemusPlatform/NumericPlatform

Install spack

Select a directory where to install spack and cd to it

cd $SOFTWARE_DIR

# clone the spack repository
git clone -c feature.manyFiles=true https://github.com/capitalaslash/spack.git -b v0.20_femus

# set up bashrc for spack automatic activation
echo "source $SOFTWARE_DIR/spack/share/spack/setup-env.sh" | tee -a ~/.bashrc

# set up spack for the current shell
source $SOFTWARE_DIR/spack/share/spack/setup-env.sh

Currently the upstream version of spack does not include all the required versions that have been included in a custom fork.

Install third party dependencies and some platform codes

cd $SOFTWARE_DIR/NumericPlatform
./spack_setup.sh

Usage

In order to use the packages installed via spack, it is sufficient to activate an environment

spack env activate $SOFTWARE_DIR/NumericPlatform/spack_env

Package versions

The versions of the various packages and compiler can be set editing the file spack_env/spack.yaml.

After editing the file, uninstall old versions

spack uninstall <package>@<old_version>

and then run

cd $SOFTWARE_DIR/NumericPlatform
./spack_setup.sh

Salome

This guide does not install the salome platform, it can be installed separately using a pre-compiled version. An example is given in the script salome_setup.sh.