allow esmf to use parallelio without mpi (#34182)
* allow esmf to use parallelio without mpi * add hash for 8.4.0 * spack no longer sets arch to cray
This commit is contained in:
parent
80722fbaa3
commit
e4547982b3
1 changed files with 4 additions and 2 deletions
|
@ -24,6 +24,7 @@ class Esmf(MakefilePackage):
|
|||
# Develop is a special name for spack and is always considered the newest version
|
||||
version("develop", branch="develop")
|
||||
# generate chksum with spack checksum esmf@x.y.z
|
||||
version("8.4.0", sha256="28531810bf1ae78646cda6494a53d455d194400f19dccd13d6361871de42ed0f")
|
||||
version(
|
||||
"8.3.1",
|
||||
sha256="6c39261e55dcdf9781cdfa344417b9606f7f961889d5ec626150f992f04f146d",
|
||||
|
@ -245,7 +246,8 @@ def edit(self, spec, prefix):
|
|||
#######
|
||||
|
||||
# ESMF_OS must be set for Cray systems
|
||||
if "platform=cray" in self.spec:
|
||||
# But spack no longer gives arch == cray
|
||||
if self.compiler.name == "cce" or "^cray-mpich" in self.spec:
|
||||
os.environ["ESMF_OS"] = "Unicos"
|
||||
|
||||
#######
|
||||
|
@ -326,7 +328,7 @@ def edit(self, spec, prefix):
|
|||
##############
|
||||
# ParallelIO #
|
||||
##############
|
||||
if "+parallelio" in spec and "+mpi" in spec:
|
||||
if "+parallelio" in spec:
|
||||
os.environ["ESMF_PIO"] = "external"
|
||||
os.environ["ESMF_PIO_LIBPATH"] = spec["parallelio"].prefix.lib
|
||||
os.environ["ESMF_PIO_INCLUDE"] = spec["parallelio"].prefix.include
|
||||
|
|
Loading…
Reference in a new issue