-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eccc_setup_intel
66 lines (55 loc) · 2.38 KB
/
.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
# For internal use at ECCC
# Source this file to:
# - Load profile, Intel compiler and code-tools for Intel, depending on compiler version
# - Load RPN-SI libraries and utilities, and RPNPY
# - Load a script for common setup to all compilers
DOMAIN=`hostname -d`
# Check name of the script called, to export corresponding Intel compiler version
INTEL_SCRIPT_NAME=$(echo $(basename ${BASH_SOURCE[0]}))
case ${INTEL_SCRIPT_NAME} in
.eccc_setup_intel)
export COMPILER_VERSION=2022.1.2
;;
.eccc_setup_intel_2021.4.0)
export COMPILER_VERSION=2021.4.0
;;
.eccc_setup_intel_2023.2.0)
export COMPILER_VERSION=2023.2.0
;;
.eccc_setup_intel_2024.2.0)
export COMPILER_VERSION=2024.2.0
;;
esac
# Load code-tools
. r.load.dot rpn/code-tools/20240719/env/inteloneapi-${COMPILER_VERSION}
# Load latest version of RPN-SI libraries and utilities
. r.load.dot mrd/rpn/libs/20241105-alpha
. r.load.dot mrd/rpn/utils/20241105-alpha
# Load latest version of RPNPY
. r.load.dot rpn/MIG/ENV/rpnpy/2.2.0
# Load Intel FFTW if on rhel, and if using Intel 2021 or Intel 2022
if [[ ${ORDENV_DIST} = "rhel" ]]; then
if [[ ${COMPILER_VERSION} = "2022.1.2" ]]; then
. r.load.dot main/opt/fftw3/fftw3-3.3.10/intelmpi-${COMPILER_VERSION}/01/
export FFTW_ROOT=/fs/ssm/main/opt/fftw3/fftw3-3.3.10/intelmpi-${COMPILER_VERSION}/01/rhel-8-amd64-64
elif [[ ${COMPILER_VERSION} = "2021.4.0" ]]; then
. r.load.dot main/opt/fftw3/fftw3-3.3.10/intelmpi-${COMPILER_VERSION}/inteloneapi-${COMPILER_VERSION}/01
export FFTW_ROOT=/fs/ssm/main/opt/fftw3/fftw3-3.3.10/intelmpi-${COMPILER_VERSION}/inteloneapi-${COMPILER_VERSION}/01/rhel-8-amd64-64
elif [[ ${COMPILER_VERSION} = "2024.2.0" ]]; then
. r.load.dot hpco/exp/fftw3/fftw3-3.3.10/intelmpi-${COMPILER_VERSION}/01
export FFTW_ROOT=/fs/ssm/hpco/exp/fftw3/fftw3-3.3.10/intelmpi-${COMPILER_VERSION}/01/rhel-8-amd64-64
fi
fi
# 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
# Call common setup file
export COMPILER_SUITE=intel
. ./.common_setup ${COMPILER_SUITE}
# Set WITH_SYSTEM_RPN variable with default value TRUE for ECCC users
export WITH_SYSTEM_RPN=TRUE