Skip to content

Commit 5341622

Browse files
committed
Add compiler if using same modules as e3sm for
hdf5, netcdf-c, netcdf-fortran and pnetcdf
1 parent 0301b4d commit 5341622

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

mache/spack/templates/chrysalis_gnu_openmpi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,25 +128,25 @@ spack:
128128
{%- if e3sm_hdf5_netcdf %}
129129
hdf5:
130130
externals:
131-
- spec: [email protected]+cxx+fortran+hl+mpi
131+
- spec: [email protected]+cxx+fortran+hl+mpi%{{ compiler }}
132132
modules:
133133
- hdf5/1.10.7-ol6xuae
134134
buildable: false
135135
netcdf-c:
136136
externals:
137-
- spec: [email protected]+mpi~parallel-netcdf
137+
- spec: [email protected]+mpi~parallel-netcdf%{{ compiler }}
138138
modules:
139139
- netcdf-c/4.7.4-pfocec2
140140
buildable: false
141141
netcdf-fortran:
142142
externals:
143-
143+
- spec: [email protected]%{{ compiler }}
144144
modules:
145145
- netcdf-fortran/4.5.3-va3hoor
146146
buildable: false
147147
parallel-netcdf:
148148
externals:
149-
- spec: [email protected]+cxx+fortran
149+
- spec: [email protected]+cxx+fortran%{{ compiler }}
150150
modules:
151151
- parallel-netcdf/1.11.0-d7h4ysd
152152
buildable: false

mache/spack/templates/chrysalis_intel_openmpi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,25 +127,25 @@ spack:
127127
{%- if e3sm_hdf5_netcdf %}
128128
hdf5:
129129
externals:
130-
- spec: [email protected]+cxx+fortran+hl+mpi
130+
- spec: [email protected]+cxx+fortran+hl+mpi%{{ compiler }}
131131
modules:
132132
- hdf5/1.10.7-4cghwvq
133133
buildable: false
134134
netcdf-c:
135135
externals:
136-
- spec: [email protected]+mpi~parallel-netcdf
136+
- spec: [email protected]+mpi~parallel-netcdf%{{ compiler }}
137137
modules:
138138
- netcdf-c/4.7.4-4qjdadt
139139
buildable: false
140140
netcdf-fortran:
141141
externals:
142-
142+
- spec: [email protected]%{{ compiler }}
143143
modules:
144144
- netcdf-fortran/4.5.3-qozrykr
145145
buildable: false
146146
parallel-netcdf:
147147
externals:
148-
- spec: [email protected]+cxx+fortran
148+
- spec: [email protected]+cxx+fortran%{{ compiler }}
149149
modules:
150150
- parallel-netcdf/1.11.0-icrpxty
151151
buildable: false

0 commit comments

Comments
 (0)