Update spack package for exago@1.6.0 release (#40614)

* Update spack package for exago:1.6.0

* update style

* Weird spack style env bug fixed

* Update spack package for exago:1.6.0

* update style

* Weird spack style env bug fixed

* changes to allow release 1.6.0

* fix depends, and versioning

* rm cmake variable

* add s

* style fix

---------

Co-authored-by: Ryan Danehy <dane678@deception04.pnl.gov>
Co-authored-by: Ryan Danehy <dane678@deception03.pnl.gov>
Co-authored-by: ryan.danehy@pnnl.gov <dane678@we45149.home>
This commit is contained in:
Ryan Danehy 2023-10-26 11:18:31 -07:00 committed by GitHub
parent e96f31c29d
commit 7ecb9243c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,20 +17,36 @@ class Exago(CMakePackage, CudaPackage, ROCmPackage):
git = "https://github.com/pnnl/ExaGO.git"
maintainers("ryandanehy", "cameronrutherford", "pelesh")
version(
"1.6.0", tag="v1.6.0", commit="159cd173572280ac0f6f094a71dcc3ebeeb34076", submodules=True
)
version(
"1.5.1", tag="v1.5.1", commit="84e9faf9d9dad8d851075eba26038338d90e6d3a", submodules=True
)
version("1.5.0", commit="227f49573a28bdd234be5500b3733be78a958f15", submodules=True)
version("1.4.1", commit="ea607c685444b5f345bfdc9a59c345f0f30adde2", submodules=True)
version("1.4.0", commit="4f4c3fdb40b52ace2d6ba000e7f24b340ec8e886", submodules=True)
version("1.3.0", commit="58b039d746a6eac8e84b0afc01354cd58caec485", submodules=True)
version("1.2.0", commit="255a214ec747b7bdde7a6d8151c083067b4d0907", submodules=True)
version("1.1.2", commit="db3bb16e19c09e01402071623258dae4d13e5133", submodules=True)
version("1.1.1", commit="0e0a3f27604876749d47c06ec71daaca4b270df9", submodules=True)
version("1.1.0", commit="dc8dd85544ff1b55a64a3cbbbdf12b8a0c6fdaf6", submodules=True)
version("1.0.0", commit="230d7df2f384f68b952a1ea03aad41431eaad283")
version("0.99.2", commit="56961641f50827b3aa4c14524f2f978dc48b9ce5")
version("0.99.1", commit="0ae426c76651ba5a9dbcaeb95f18d1b8ba961690")
version(
"1.5.0", tag="v1.5.0", commit="227f49573a28bdd234be5500b3733be78a958f15", submodules=True
)
version(
"1.4.1", tag="v1.4.1", commit="ea607c685444b5f345bfdc9a59c345f0f30adde2", submodules=True
)
version(
"1.4.0", tag="v1.4.0", commit="4f4c3fdb40b52ace2d6ba000e7f24b340ec8e886", submodules=True
)
version(
"1.3.0", tag="v1.3.0", commit="58b039d746a6eac8e84b0afc01354cd58caec485", submodules=True
)
version(
"1.1.2", tag="v1.1.2", commit="db3bb16e19c09e01402071623258dae4d13e5133", submodules=True
)
version(
"1.1.1", tag="v1.1.1", commit="0e0a3f27604876749d47c06ec71daaca4b270df9", submodules=True
)
version(
"1.1.0", tag="v1.1.0", commit="dc8dd85544ff1b55a64a3cbbbdf12b8a0c6fdaf6", submodules=True
)
version("1.0.0", tag="v1.0.0", commit="230d7df2f384f68b952a1ea03aad41431eaad283")
version("0.99.2", tag="v0.99.2", commit="56961641f50827b3aa4c14524f2f978dc48b9ce5")
version("0.99.1", tag="v0.99.1", commit="0ae426c76651ba5a9dbcaeb95f18d1b8ba961690")
version("main", branch="main", submodules=True)
version("develop", branch="develop", submodules=True)
version(
@ -49,7 +65,6 @@ class Exago(CMakePackage, CudaPackage, ROCmPackage):
conflicts(
"+python", when="+ipopt+rocm", msg="Python bindings require -fPIC with Ipopt for rocm."
)
variant("logging", default=False, description="Enable/Disable spdlog based logging")
# Solver options
variant("hiop", default=False, description="Enable/Disable HiOp")
@ -64,7 +79,12 @@ class Exago(CMakePackage, CudaPackage, ROCmPackage):
"~hiop~ipopt+python @:1.5.0",
msg="ExaGO Python wrapper requires at least one solver enabled.",
)
conflicts(
"+hiop~mpi ^hiop@1.0.0:~mpi",
when="@1.5.1:1.6.1",
msg="#18 - builds with hiop and without MPI cause compile time errors",
)
conflicts("+python~mpi", msg="#16 - Python wrapper requires MPI enabled")
# Dependencies
depends_on("python@3.6:3.10", when="@1.3.0:1.5+python")
depends_on("py-pytest", type=("build", "run"), when="@1.5.0:+python")
@ -76,7 +96,6 @@ class Exago(CMakePackage, CudaPackage, ROCmPackage):
depends_on("cuda", when="+cuda")
depends_on("raja", when="+raja")
depends_on("umpire", when="+raja")
depends_on("cmake@3.18:", type="build")
# Profiling
@ -117,7 +136,7 @@ class Exago(CMakePackage, CudaPackage, ROCmPackage):
depends_on("hiop@0.3.99:", when="@0.99:+hiop")
depends_on("hiop@0.5.1:", when="@1.1.0:+hiop")
depends_on("hiop@0.5.3:", when="@1.3.0:+hiop")
depends_on("hiop@0.7.0:", when="@1.5.0:+hiop")
depends_on("hiop@0.7.0:1.0.0", when="@1.5.0:+hiop")
depends_on("hiop~mpi", when="+hiop~mpi")
depends_on("hiop+mpi", when="+hiop+mpi")
@ -191,7 +210,6 @@ def cmake_args(self):
self.define_from_variant("EXAGO_ENABLE_HIOP", "hiop"),
self.define_from_variant("EXAGO_ENABLE_IPOPT", "ipopt"),
self.define_from_variant("EXAGO_ENABLE_PYTHON", "python"),
self.define_from_variant("EXAGO_ENABLE_LOGGING", "logging"),
]
)