Skip to content

Commit a307aa2

Browse files
authored
Merge pull request #221 from xylar/add-frontier-amd
Add amdclang support on frontier
2 parents 93b0d45 + 162050b commit a307aa2

File tree

6 files changed

+424
-0
lines changed

6 files changed

+424
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module reset >& /dev/null
2+
module switch Core/24.07 >& /dev/null
3+
module switch PrgEnv-cray PrgEnv-amd/8.3.3 >& /dev/null
4+
module switch amd amd/5.4.0 >& /dev/null
5+
6+
{% if e3sm_lapack %}
7+
module load cray-libsci/22.12.1.1
8+
{% endif %}
9+
{% if e3sm_hdf5_netcdf %}
10+
module load cray-hdf5-parallel/1.12.2.1
11+
module load cray-netcdf-hdf5parallel/4.9.0.1
12+
module load cray-parallel-netcdf/1.12.3.1
13+
{% endif %}
14+
15+
{% if e3sm_hdf5_netcdf %}
16+
setenv NETCDF_C_PATH $CRAY_NETCDF_HDF5PARALLEL_PREFIX
17+
setenv NETCDF_FORTRAN_PATH $CRAY_NETCDF_HDF5PARALLEL_PREFIX
18+
setenv PNETCDF_PATH $CRAY_PARALLEL_NETCDF_PREFIX
19+
{% endif %}
20+
setenv HDF5_USE_FILE_LOCKING FALSE
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module reset >& /dev/null
2+
module switch Core/24.07 >& /dev/null
3+
module switch PrgEnv-cray PrgEnv-amd/8.3.3 >& /dev/null
4+
module switch amd amd/5.4.0 >& /dev/null
5+
6+
{% if e3sm_lapack %}
7+
module load cray-libsci/22.12.1.1
8+
{% endif %}
9+
{% if e3sm_hdf5_netcdf %}
10+
module load cray-hdf5-parallel/1.12.2.1
11+
module load cray-netcdf-hdf5parallel/4.9.0.1
12+
module load cray-parallel-netcdf/1.12.3.1
13+
{% endif %}
14+
15+
{% if e3sm_hdf5_netcdf %}
16+
export NETCDF_C_PATH=$CRAY_NETCDF_HDF5PARALLEL_PREFIX
17+
export NETCDF_FORTRAN_PATH=$CRAY_NETCDF_HDF5PARALLEL_PREFIX
18+
export PNETCDF_PATH=$CRAY_PARALLEL_NETCDF_PREFIX
19+
{% endif %}
20+
export HDF5_USE_FILE_LOCKING=FALSE
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
spack:
2+
specs:
3+
- cray-mpich
4+
{% if e3sm_lapack %}
5+
- cray-libsci
6+
{% endif %}
7+
{% if e3sm_hdf5_netcdf %}
8+
- hdf5
9+
- netcdf-c
10+
- netcdf-fortran
11+
- parallel-netcdf
12+
{% endif %}
13+
{{ specs }}
14+
concretizer:
15+
unify: when_possible
16+
packages:
17+
all:
18+
compiler: [[email protected]]
19+
providers:
20+
21+
{% if e3sm_lapack %}
22+
23+
{% endif %}
24+
autoconf:
25+
externals:
26+
27+
prefix: /usr
28+
buildable: false
29+
automake:
30+
externals:
31+
32+
prefix: /usr
33+
buildable: false
34+
bzip2:
35+
externals:
36+
37+
prefix: /usr
38+
buildable: false
39+
cmake:
40+
externals:
41+
42+
modules:
43+
- cmake/3.27.9
44+
buildable: false
45+
curl:
46+
externals:
47+
48+
prefix: /usr
49+
buildable: false
50+
gettext:
51+
externals:
52+
53+
prefix: /usr
54+
buildable: false
55+
gmake:
56+
externals:
57+
58+
prefix: /sw/frontier/spack-envs/base/opt/linux-sles15-x86_64/gcc-7.5.0/gmake-4.3-32qt54ujpdxcat7ceg4vcjlmf2ze25j5
59+
buildable: false
60+
libxml2:
61+
externals:
62+
63+
prefix: /usr
64+
buildable: false
65+
m4:
66+
externals:
67+
68+
prefix: /usr
69+
buildable: false
70+
ncurses:
71+
externals:
72+
73+
prefix: /usr
74+
buildable: false
75+
openssl:
76+
externals:
77+
78+
prefix: /usr
79+
buildable: false
80+
perl:
81+
externals:
82+
83+
prefix: /usr
84+
buildable: false
85+
python:
86+
externals:
87+
88+
modules:
89+
- cray-python/3.11.5
90+
buildable: false
91+
tar:
92+
externals:
93+
94+
prefix: /usr
95+
buildable: false
96+
xz:
97+
externals:
98+
99+
prefix: /usr
100+
buildable: false
101+
cray-mpich:
102+
externals:
103+
104+
prefix: /opt/cray/pe/mpich/8.1.23/ofi/amd/5.0
105+
modules:
106+
- libfabric/1.15.2.0
107+
- cray-mpich/8.1.23
108+
buildable: false
109+
libfabric:
110+
externals:
111+
112+
prefix: /opt/cray/libfabric/1.15.2.0
113+
modules:
114+
- libfabric/1.15.2.0
115+
buildable: false
116+
{% if e3sm_lapack %}
117+
cray-libsci:
118+
externals:
119+
120+
prefix: /opt/cray/pe/libsci/22.12.1.1/amd/4.0/x86_64
121+
modules:
122+
- cray-libsci/22.12.1.1
123+
buildable: false
124+
{% endif %}
125+
{% if e3sm_hdf5_netcdf %}
126+
hdf5:
127+
externals:
128+
- spec: [email protected]~cxx+fortran+hl~java+mpi+shared
129+
prefix: /opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3
130+
buildable: false
131+
parallel-netcdf:
132+
externals:
133+
- spec: [email protected]+cxx+fortran+pic+shared
134+
prefix: /opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3
135+
buildable: false
136+
netcdf-c:
137+
externals:
138+
- spec: [email protected]+mpi~parallel-netcdf
139+
prefix: /opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3
140+
buildable: false
141+
netcdf-fortran:
142+
externals:
143+
144+
prefix: /opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3
145+
buildable: false
146+
{% endif %}
147+
compilers:
148+
- compiler:
149+
150+
paths:
151+
cc: cc
152+
cxx: CC
153+
f77: ftn
154+
fc: ftn
155+
flags: {}
156+
operating_system: sles15
157+
target: any
158+
modules:
159+
- Core/24.07
160+
- PrgEnv-amd/8.3.3
161+
- amd/5.4.0
162+
- libfabric/1.15.2.0
163+
environment:
164+
prepend_path:
165+
PKG_CONFIG_PATH: "/opt/cray/xpmem/2.6.2-2.5_2.22__gd067c3f.shasta/lib64/pkgconfig"
166+
extra_rpaths:
167+
- /opt/cray/pe/gcc-libs
168+
- /opt/cray/gcc-libs
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module reset >& /dev/null
2+
module switch Core/24.07 >& /dev/null
3+
module switch PrgEnv-cray PrgEnv-amd/8.3.3 >& /dev/null
4+
module switch amd amd/5.4.0 >& /dev/null
5+
module load craype-accel-amd-gfx90a >& /dev/null
6+
7+
{% if e3sm_lapack %}
8+
module load cray-libsci/22.12.1.1
9+
{% endif %}
10+
{% if e3sm_hdf5_netcdf %}
11+
module load cray-hdf5-parallel/1.12.2.1
12+
module load cray-netcdf-hdf5parallel/4.9.0.1
13+
module load cray-parallel-netcdf/1.12.3.1
14+
{% endif %}
15+
16+
{% if e3sm_hdf5_netcdf %}
17+
setenv NETCDF_C_PATH $CRAY_NETCDF_HDF5PARALLEL_PREFIX
18+
setenv NETCDF_FORTRAN_PATH $CRAY_NETCDF_HDF5PARALLEL_PREFIX
19+
setenv PNETCDF_PATH $CRAY_PARALLEL_NETCDF_PREFIX
20+
{% endif %}
21+
setenv HDF5_USE_FILE_LOCKING FALSE
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module reset >& /dev/null
2+
module switch Core/24.07 >& /dev/null
3+
module switch PrgEnv-cray PrgEnv-amd/8.3.3 >& /dev/null
4+
module switch amd amd/5.4.0 >& /dev/null
5+
module load craype-accel-amd-gfx90a >& /dev/null
6+
7+
{% if e3sm_lapack %}
8+
module load cray-libsci/22.12.1.1
9+
{% endif %}
10+
{% if e3sm_hdf5_netcdf %}
11+
module load cray-hdf5-parallel/1.12.2.1
12+
module load cray-netcdf-hdf5parallel/4.9.0.1
13+
module load cray-parallel-netcdf/1.12.3.1
14+
{% endif %}
15+
16+
{% if e3sm_hdf5_netcdf %}
17+
export NETCDF_C_PATH=$CRAY_NETCDF_HDF5PARALLEL_PREFIX
18+
export NETCDF_FORTRAN_PATH=$CRAY_NETCDF_HDF5PARALLEL_PREFIX
19+
export PNETCDF_PATH=$CRAY_PARALLEL_NETCDF_PREFIX
20+
{% endif %}
21+
export HDF5_USE_FILE_LOCKING=FALSE

0 commit comments

Comments
 (0)