-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eccc_setup_gnu
45 lines (35 loc) · 1.32 KB
/
.eccc_setup_gnu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# For internal use at ECCC
# Source this file to:
# - Load profile and code-tools for gnu
# - Load RPN-SI libraries and utilities, and RPNPY
# - Load a script for common setup to all compilers
DOMAIN=`hostname -d`
if [[ ${DOMAIN} = "collab.science.gc.ca" ]]; then
. r.load.dot rpn/code-tools/ENV/cdt-1.6.8/SCIENCE/gpscc3/gnu
elif [[ -z "${DOMAIN}" || ${DOMAIN} = "science.gc.ca" ]]; then
. r.load.dot rpn/code-tools/ENV/cdt-1.6.8/SCIENCE/gnu-9.3.0
else
. r.load.dot rpn/code-tools/ENV/cdt-1.6.8/ECCC/gnu
fi
# Load latest version of RPN-SI libraries and utilities
. r.load.dot rpn/libs/20230906
. r.load.dot rpn/utils/20230906
# Load latest version of RPNPY
. r.load.dot rpn/MIG/ENV/x/rpnpy/2.2.0-rc2
# We need a more recent version of cmake than the one available by default
. ssmuse-sh -d main/opt/cmake/cmake-3.21.1
# Check and tell if maestro is loaded
if [ -z "${MAESTRO_VERSION}" ]; then
echo ""
echo "Maestro is not loaded: GEM task setup scripts will be used instead of maestro scripts."
else
echo "Maestro ${MAESTRO_VERSION} scripts will be used"
fi
export COMPILER_SUITE=gnu
COMPILER_VERSION=$(utils/compiler.sh gnu)
export COMPILER_VERSION
# Call common setup file
. ./.common_setup ${COMPILER_SUITE}
# Set WITH_SYSTEM_RPN variable with default value TRUE for ECCC users
export WITH_SYSTEM_RPN=TRUE