libeerUtils contains a suite of base utility functions used by SPI and EER's dispersion models and tools
git clone --recursive git@gitlab.science.gc.ca:ECCC_CMOE_APPS/libeerutils
You will need cmake with a version at least 3.12
. ssmuse-sh -x /fs/ssm/main/opt/cmake-3.21.1
- Mandatory external dependencies are available through the SPI-Externals. This can extracted in ans SSM_DEV directory, built and provided to the build through the TCL_SRC_DIR variable. See below for Build process
- codetools and compilers
. r.load.dot rpn/code-tools/ENV/cdt-1.6.1/SCIENCE/inteloneapi-2022.1.2
. r.load.dot rpn/libs/20220216
- External dependencies (GDAL, eccodes, libecbufr, fltlib). Within the ECCC/SCIENCE network, a package containing all the dependencies can be loaded
export CMD_EXT_PATH=/fs/ssm/eccc/cmd/cmds/ext/20210211; . ssmuse-sh -x $CMD_EXT_PATH
Source the right file depending on the architecture you need from the env directory. This will load the specified compiler and define the ECCI_DATA_DIR variable for the test datasets
- Example for PPP3 and skylake specific architecture:
. $ECCI_ENV/latest/ubuntu-18.04-skylake-64/intel-19.0.3.199.sh
- Example for XC50 on intel-19.0.5
. $ECCI_ENV/latest/sles-15-skylake-64/intel-19.0.5.281.sh
- Example for CMC network and gnu 7.5:
. $ECCI_ENV/latest/ubuntu-18.04-amd-64/gnu-7.5.0.sh
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$SSM_DEV/workspace -DTCL_SRC_DIR=${SSM_DEV}/SPI-External/tcl ../
make -j 4
make test
make install
make package