Skip to content
Snippets Groups Projects
Commit 613fe90c authored by Fabian.Jakub's avatar Fabian.Jakub
Browse files

icon-spack package: make --enable-mpi-checks=no a variant, now set with icon-nwp~mpichecks

parent 39e071d1
Branches FJ/running_on_levante
No related tags found
No related merge requests found
Pipeline #18752 passed
......@@ -108,7 +108,7 @@ spack:
icon:
#build_cmd: "icon-nwp@%ICON.VERSION%% %SPACK.COMPILER%+debug+petsc target=x86_64_v2 ^openmpi+pmi+legacylaunchers schedulers=slurm fabrics=ucx ucx+dc+dm+ib_hw_tm+mlx5_dv+rc+rdmacm+thread_multiple+ud+verbs"
build_cmd: "icon-nwp@%ICON.VERSION%% %SPACK.COMPILER%+debug target=x86_64_v2 source=dkrz_https"
build_cmd: "icon-nwp@%ICON.VERSION%% %SPACK.COMPILER%+debug~mpichecks target=x86_64_v2 source=dkrz_https"
version: psp
data_management:
......
......@@ -108,7 +108,7 @@ spack:
icon:
#build_cmd: "icon-nwp@%ICON.VERSION%% %SPACK.COMPILER%+debug+petsc target=x86_64_v2 ^openmpi+pmi+legacylaunchers schedulers=slurm fabrics=ucx ucx+dc+dm+ib_hw_tm+mlx5_dv+rc+rdmacm+thread_multiple+ud+verbs"
build_cmd: "icon-nwp@%ICON.VERSION%% %SPACK.COMPILER%+debug target=x86_64_v2 source=dkrz_https"
build_cmd: "icon-nwp@%ICON.VERSION%% %SPACK.COMPILER%+debug~mpichecks target=x86_64_v2 source=dkrz_https"
version: 2.6.5-nwp0
data_management:
......
......@@ -38,20 +38,21 @@ class IconNwp(Package):
"lmu": "ssh://git@gitlab.physik.uni-muenchen.de/w2w/icon.git",
}
variant("plexrt", default=False, description="add 3D radiation support with TenStream")
variant("petsc", default=False, description="add PETSc support")
variant("debug", default=False, description="add debug flags when compiling icon")
variant("parallelnetcdf", default=True, description="enable-parallel-netcdf")
variant("yaxt", default=True, description="enable-yaxt")
variant("grib2", default=True, description="enable-grib2")
variant("mpichecks", default=True, description="enable-mpi-checks")
variant("waves", default=True, description="enable-waves")
variant("ecrad", default=True, description="enable-ecrad")
variant("rttov", default=True, description="enable-rttov")
variant("dace", default=True, description="enable-dace")
variant("emvorado", default=True, description="enable-emvorado")
variant("art", default=True, description="enable-art")
variant("waves" , default=False, description="enable-waves")
variant("ecrad" , default=False, description="enable-ecrad")
variant("rttov" , default=False, description="enable-rttov")
variant("dace" , default=False, description="enable-dace")
variant("emvorado", default=False, description="enable-emvorado")
variant("art" , default=False, description="enable-art")
variant("plexrt" , default=False, description="add 3D radiation support with TenStream")
variant("petsc" , default=False, description="add PETSc support")
# Dependencies
depends_on("mpi")
......@@ -238,6 +239,9 @@ class IconNwp(Package):
else:
options.append(f"ICON_FCFLAGS={ICON_FCFLAGS} -O3")
if "~mpichecks" in self.spec:
options.append("--enable-mpi-checks=no")
if "+parallelnetcdf" in self.spec:
options.append("--enable-parallel-netcdf")
......@@ -266,9 +270,6 @@ class IconNwp(Package):
if "+art" in self.spec:
options.append("--enable-art")
# For some reason there's a problem with OpenMPI with gcc@11.3.0 which makes the configuration fail.
if self.spec.compiler.name == "gcc" and self.spec.compiler.version == Version("11.3.0"):
options.append("--enable-mpi-checks=no")
configure(*options)
def build(self, spec, prefix):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment