forked from ECCC-ASTD-MRD/sps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eccc_setup_intel
33 lines (24 loc) · 1005 Bytes
/
.eccc_setup_intel
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
#!/bin/bash
# For internal use at ECCC
# Source this file to:
# - Load profile, Intel compiler. and code-tools for Intel
# - Load libraries
# - 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.5/SCIENCE/gpscc2/inteloneapi-2022.1.2
elif [[ -z "${DOMAIN}" || ${DOMAIN} = "science.gc.ca" ]]; then
. r.load.dot rpn/code-tools/ENV/cdt-1.6.5/SCIENCE/inteloneapi-2022.1.2
else
. r.load.dot rpn/code-tools/ENV/cdt-1.6.5/ECCC/inteloneapi-2022.1.2
fi
# Load latest version of RPN-SI libraries and utilities
. r.load.dot rpn/libs/20230725
. r.load.dot rpn/utils/20230725
# We need a more recent version of cmake than the one available by default
. ssmuse-sh -d main/opt/cmake/cmake-3.21.1
export COMPILER_SUITE=intel
export COMPILER_VERSION=2022.1.2
. ./.common_setup ${COMPILER_SUITE}
# Set WITH_SYSTEM_RPN variable with default value TRUE for ECCC users
export WITH_SYSTEM_RPN=TRUE