Skip to content

Commit b90544f

Browse files
piotrowsawnawab
authored andcommitted
Update arch file for nvhpc and add env files for GNU and Intel
1 parent cbd48ef commit b90544f

File tree

3 files changed

+94
-3
lines changed

3 files changed

+94
-3
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# (C) Copyright 1988- ECMWF.
2+
#
3+
# This software is licensed under the terms of the Apache Licence Version 2.0
4+
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
5+
# In applying this licence, ECMWF does not waive the privileges and immunities
6+
# granted to it by virtue of its status as an intergovernmental organisation
7+
# nor does it submit to any jurisdiction.
8+
9+
# Store tracing and disable (module is *way* too verbose)
10+
{ tracing_=${-//[^x]/}; set +x; } 2>/dev/null
11+
12+
module_load() {
13+
echo "+ module load $1"
14+
module load $1
15+
}
16+
module_unload() {
17+
echo "+ module unload $1"
18+
module unload $1
19+
}
20+
21+
# Unload all modules to be certain
22+
module purge
23+
24+
# Load modules
25+
module_load prgenv/gnu
26+
module_load gcc/14.2.0
27+
module_load hpcx-openmpi/2.18.1
28+
#module_load boost/1.87.0
29+
module_load hdf5/1.14.6
30+
module_load cmake/4.0.2
31+
module_load python3/3.11.10-01
32+
#module_load java/11.0.6
33+
module_load ninja/1.12.1
34+
module_load ecbuild/3.12.0
35+
36+
37+
# Restore tracing to stored setting
38+
{ if [[ -n "$tracing_" ]]; then set -x; else set +x; fi } 2>/dev/null
39+
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# (C) Copyright 1988- ECMWF.
2+
#
3+
# This software is licensed under the terms of the Apache Licence Version 2.0
4+
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
5+
# In applying this licence, ECMWF does not waive the privileges and immunities
6+
# granted to it by virtue of its status as an intergovernmental organisation
7+
# nor does it submit to any jurisdiction.
8+
9+
# Source me to get the correct configure/build/run environment
10+
11+
# Store tracing and disable (module is *way* too verbose)
12+
{ tracing_=${-//[^x]/}; set +x; } 2>/dev/null
13+
14+
module_load() {
15+
echo "+ module load $1"
16+
module load $1
17+
}
18+
module_unload() {
19+
echo "+ module unload $1"
20+
module unload $1
21+
}
22+
23+
# Unload all modules to be certain
24+
module_unload intel
25+
module_unload openmpi
26+
module_unload hpcx-openmpi
27+
module_unload hdf5
28+
module_unload cmake
29+
module_unload python3
30+
31+
# Load modules
32+
module_load prgenv/intel
33+
module_load intel/2021.4.0
34+
module_load hpcx-openmpi/2.18.1
35+
module_load hdf5/1.12.2
36+
module_load cmake/4.0.2
37+
module_load python3/3.11.10-01
38+
module_load ecbuild/3.12.0
39+
module_load ninja/1.12.1
40+
41+
42+
set -x
43+
44+
# Restore tracing to stored setting
45+
{ if [[ -n "$tracing_" ]]; then set -x; else set +x; fi } 2>/dev/null
46+

arch/ecmwf/hpc2020/nvhpc/24.5/env.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,14 @@ module_purge
3131
# Load modules
3232
module_load prgenv/nvidia
3333
module_load nvidia/24.5
34-
module_load python3/3.10.10-01
35-
module_load cmake/3.25.2
36-
module_load ecbuild/3.8.5
34+
module_load python3/3.11.10-01
35+
module_load cmake/4.0.2
36+
module_load ecbuild/3.12.0
37+
module load ninja/1.12.1
38+
module_load hdf5/1.14.3
39+
module_load hpcx-openmpi/2.19.0-cuda
40+
41+
3742

3843
# Increase stack size to maximum
3944
ulimit -S -s unlimited
@@ -45,3 +50,4 @@ ulimit -S -l unlimited
4550
path=$BASH_SOURCE
4651
DIR_PATH=$(dirname $path)
4752
export ECBUILD_TOOLCHAIN=$DIR_PATH/toolchain.cmake
53+

0 commit comments

Comments
 (0)