Skip to content

Commit

Permalink
xsdk: add v1.1.0 (spack#47635)
Browse files Browse the repository at this point in the history
xsdk: exclude pflotran, alquimia, exago

heffte: ~fftw when=+hip

dealii: ~sundials ~opencascade ~vtk ~taskflow
  • Loading branch information
balay authored Nov 21, 2024
1 parent 5fd12b7 commit f41b38e
Showing 1 changed file with 71 additions and 5 deletions.
76 changes: 71 additions & 5 deletions var/spack/repos/builtin/packages/xsdk/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class Xsdk(BundlePackage, CudaPackage, ROCmPackage):
homepage = "https://xsdk.info"
maintainers("balay", "luszczek", "balos1", "shuds13", "v-dobrev")

version("1.1.0")
version("1.0.0")
version("0.8.0", deprecated=True)

Expand All @@ -94,7 +95,7 @@ class Xsdk(BundlePackage, CudaPackage, ROCmPackage):
variant("omega-h", default=True, description="Enable omega-h package build")
variant("strumpack", default=True, description="Enable strumpack package build")
variant("dealii", default=True, description="Enable dealii package build")
variant("alquimia", default=True, description="Enable alquimia package build")
variant("alquimia", default=True, when="@:1.0.0", description="Enable alquimia package build")
variant("phist", default=True, description="Enable phist package build")
variant("ginkgo", default=True, description="Enable ginkgo package build")
variant("libensemble", default=True, description="Enable py-libensemble package build")
Expand All @@ -105,16 +106,25 @@ class Xsdk(BundlePackage, CudaPackage, ROCmPackage):
variant("heffte", default=True, description="Enable heffte package build")
variant("slate", default=(sys.platform != "darwin"), description="Enable slate package build")
variant("arborx", default=True, description="Enable ArborX build")
variant("exago", default=True, description="Enable exago build")
variant("exago", default=True, when="@:1.0.0", description="Enable exago build")
variant("hiop", default=True, description="Enable hiop build")
variant("raja", default=(sys.platform != "darwin"), description="Enable raja for hiop, exago")
variant("pflotran", default=True, description="Enable pflotran package build")
variant("pflotran", default=True, when="@:1.0.0", description="Enable pflotran package build")

xsdk_depends_on(
"[email protected]+superlu-dist+shared", when="@1.1.0", cuda_var="cuda", rocm_var="rocm"
)
xsdk_depends_on(
"[email protected]+superlu-dist+shared", when="@1.0.0", cuda_var="cuda", rocm_var="rocm"
)
xsdk_depends_on("[email protected]+superlu-dist+shared", when="@0.8.0", cuda_var="cuda")

xsdk_depends_on(
"[email protected]+shared+mpi+superlu-dist+petsc+sundials+examples+miniapps",
when="@1.1.0",
cuda_var="cuda",
rocm_var="rocm",
)
xsdk_depends_on(
"[email protected]+shared+mpi+superlu-dist+petsc+sundials+examples+miniapps",
when="@1.0.0",
Expand All @@ -128,10 +138,18 @@ class Xsdk(BundlePackage, CudaPackage, ROCmPackage):
rocm_var="rocm",
)

xsdk_depends_on("[email protected]", when="@1.1.0", cuda_var="cuda", rocm_var="rocm")
xsdk_depends_on("[email protected]", when="@1.0.0", cuda_var="cuda", rocm_var="rocm")
xsdk_depends_on("[email protected]", when="@0.8.0")

xsdk_depends_on("trilinos +superlu-dist", when="@1.0.0: +trilinos ~cuda ~rocm")
xsdk_depends_on(
"[email protected]+hypre+hdf5~mumps+boost"
+ "~suite-sparse+tpetra+nox+ifpack2+zoltan+zoltan2+amesos2"
+ "~exodus~dtk+intrepid2+shards+stratimikos gotype=int"
+ " cxxstd=17",
when="@1.1.0 +trilinos",
)
xsdk_depends_on(
"[email protected]+hypre+hdf5~mumps+boost"
+ "~suite-sparse+tpetra+nox+ifpack2+zoltan+zoltan2+amesos2"
Expand All @@ -147,12 +165,19 @@ class Xsdk(BundlePackage, CudaPackage, ROCmPackage):
when="@0.8.0 +trilinos",
)

xsdk_depends_on("[email protected]", when="@1.1.0 +trilinos +datatransferkit")
xsdk_depends_on("[email protected]", when="@1.0.0 +trilinos +datatransferkit")
dtk7ver = "3.1-rc2" if sys.platform == "darwin" else "3.1-rc3"
xsdk_depends_on("datatransferkit@" + dtk7ver, when="@0.8.0 +trilinos +datatransferkit")

xsdk_depends_on("petsc +batch", when="^cray-mpich")
xsdk_depends_on("petsc +sycl +kokkos", when="@1.0.0: +sycl")
xsdk_depends_on(
"[email protected]+mpi+hypre+superlu-dist+metis+hdf5~mumps+double~int64",
when="@1.1.0",
cuda_var="cuda",
rocm_var="rocm",
)
xsdk_depends_on(
"[email protected]+mpi+hypre+superlu-dist+metis+hdf5~mumps+double~int64",
when="@1.0.0",
Expand All @@ -168,6 +193,12 @@ class Xsdk(BundlePackage, CudaPackage, ROCmPackage):

xsdk_depends_on("dealii +trilinos~adol-c", when="+trilinos +dealii")
xsdk_depends_on("dealii ~trilinos", when="~trilinos +dealii")
xsdk_depends_on(
"[email protected]~assimp~python~doc~gmsh+petsc+slepc+mpi~int64"
+ "~netcdf+metis~sundials~ginkgo~symengine~simplex~arborx~cgal~oce"
+ "~opencascade~vtk~taskflow",
when="@1.1.0 +dealii",
)
xsdk_depends_on(
"[email protected]~assimp~python~doc~gmsh+petsc+slepc+mpi~int64"
+ "~netcdf+metis+sundials~ginkgo~symengine~simplex~arborx~cgal~oce"
Expand All @@ -190,6 +221,12 @@ class Xsdk(BundlePackage, CudaPackage, ROCmPackage):
xsdk_depends_on("sundials +trilinos", when="+trilinos")
xsdk_depends_on("sundials +ginkgo", when="+ginkgo @0.8.0:")
xsdk_depends_on("sundials +sycl cxxstd=17", when="@1.0.0: +sycl")
xsdk_depends_on(
"[email protected]~int64+hypre+petsc+superlu-dist",
when="@1.1.0",
cuda_var=["cuda", "?magma"],
rocm_var=["rocm", "?magma"],
)
xsdk_depends_on(
"[email protected]~int64+hypre+petsc+superlu-dist",
when="@1.0.0",
Expand All @@ -203,33 +240,43 @@ class Xsdk(BundlePackage, CudaPackage, ROCmPackage):
rocm_var=["rocm", "?magma"],
)

xsdk_depends_on("[email protected]", when="@1.1.0 %[email protected]:")
xsdk_depends_on("[email protected]:", when="@1.0.0 %[email protected]:")
xsdk_depends_on("[email protected]:", when="@0.8.0 %[email protected]:")

xsdk_depends_on("[email protected]", when="@1.1.0", cuda_var="?cuda", rocm_var="?rocm")
xsdk_depends_on("[email protected]", when="@1.0.0", cuda_var="?cuda", rocm_var="?rocm")
xsdk_depends_on("[email protected]", when="@0.8.0", cuda_var="?cuda", rocm_var="?rocm")

xsdk_depends_on("amrex +sycl", when="@1.0.0: +sycl")
xsdk_depends_on("[email protected]+sundials", when="@1.1.0 +amrex", cuda_var="cuda", rocm_var="rocm")
xsdk_depends_on("[email protected]+sundials", when="@1.0.0 +amrex", cuda_var="cuda", rocm_var="rocm")
xsdk_depends_on("[email protected]+sundials", when="@0.8.0 +amrex", cuda_var="cuda", rocm_var="rocm")

xsdk_depends_on("[email protected]", when="@1.1.0", cuda_var="cuda", rocm_var="rocm")
xsdk_depends_on("[email protected]", when="@1.0.0", cuda_var="cuda", rocm_var="rocm")
xsdk_depends_on("[email protected]", when="@0.8.0", cuda_var="cuda", rocm_var="rocm")

xsdk_depends_on("omega-h +trilinos", when="+trilinos +omega-h")
xsdk_depends_on("omega-h ~trilinos", when="~trilinos +omega-h")
xsdk_depends_on("[email protected]", when="@1.1.0 +omega-h")
xsdk_depends_on("[email protected]", when="@1.0.0 +omega-h")
xsdk_depends_on("[email protected]", when="@0.8.0 +omega-h")

xsdk_depends_on("strumpack ~cuda", when="~cuda +strumpack")
xsdk_depends_on("strumpack ~slate~openmp", when="~slate @0.8.0: +strumpack")
xsdk_depends_on("[email protected]", when="@1.1.0 +strumpack", cuda_var=["cuda"])
xsdk_depends_on("[email protected]", when="@1.0.0 +strumpack", cuda_var=["cuda"])
xsdk_depends_on("[email protected]", when="@0.8.0 +strumpack", cuda_var=["cuda"])

xsdk_depends_on("[email protected]+shared", when="@1.1.0")
xsdk_depends_on("[email protected]+shared", when="@1.0.0")
xsdk_depends_on("[email protected]+shared", when="@0.8.0")

tasmanian_openmp = "~openmp" if sys.platform == "darwin" else "+openmp"
xsdk_depends_on(
"[email protected]+mpi+blas" + tasmanian_openmp, when="@1.1.0", cuda_var=["cuda", "?magma"]
)
xsdk_depends_on(
"[email protected]+mpi+blas" + tasmanian_openmp, when="@1.0.0", cuda_var=["cuda", "?magma"]
)
Expand All @@ -240,6 +287,7 @@ class Xsdk(BundlePackage, CudaPackage, ROCmPackage):
)

xsdk_depends_on("arborx+sycl", when="@1.0.0: +arborx +sycl")
xsdk_depends_on("[email protected]", when="@1.1.0 +arborx")
xsdk_depends_on("[email protected]", when="@1.0.0 +arborx")
xsdk_depends_on("[email protected]", when="@0.8.0 +arborx")

Expand All @@ -251,43 +299,59 @@ class Xsdk(BundlePackage, CudaPackage, ROCmPackage):

xsdk_depends_on("phist kernel_lib=tpetra", when="+trilinos +phist")
xsdk_depends_on("phist kernel_lib=petsc", when="~trilinos +phist")
xsdk_depends_on("[email protected] ~fortran ~scamac ~openmp ~host ~int64", when="@1.1.0 +phist")
xsdk_depends_on("[email protected] ~fortran ~scamac ~openmp ~host ~int64", when="@1.0.0 +phist")
xsdk_depends_on("[email protected] ~fortran ~scamac ~openmp ~host ~int64", when="@0.8.0 +phist")

xsdk_depends_on("ginkgo+sycl", when="@1.0.0: +ginkgo +sycl")
xsdk_depends_on(
"[email protected] +mpi ~openmp", when="@1.1.0 +ginkgo", cuda_var="cuda", rocm_var="rocm"
)
xsdk_depends_on(
"[email protected] +mpi ~openmp", when="@1.0.0 +ginkgo", cuda_var="cuda", rocm_var="rocm"
)
xsdk_depends_on(
"[email protected] +mpi ~openmp", when="@0.8.0 +ginkgo", cuda_var="cuda", rocm_var="rocm"
)

xsdk_depends_on("[email protected]+petsc4py", when="@1.1.0 +libensemble")
xsdk_depends_on("[email protected]", when="@1.1.0 +libensemble")
xsdk_depends_on("[email protected]+petsc4py", when="@1.0.0 +libensemble")
xsdk_depends_on("[email protected]", when="@1.0.0 +libensemble")
xsdk_depends_on("[email protected]+petsc4py", when="@0.8.0 +libensemble")
xsdk_depends_on("[email protected]", when="@0.8.0 +libensemble")

xsdk_depends_on("precice ~petsc", when="+precice ^cray-mpich")
xsdk_depends_on("[email protected]", when="@1.1.0 +precice")
xsdk_depends_on("[email protected]", when="@1.0.0 +precice")
xsdk_depends_on("[email protected]", when="@0.8.0 +precice")

bfpk_openmp = "~openmp" if sys.platform == "darwin" else "+openmp"
xsdk_depends_on("[email protected]" + bfpk_openmp, when="@1.1.0 +butterflypack")
xsdk_depends_on("[email protected]" + bfpk_openmp, when="@1.0.0 +butterflypack")
xsdk_depends_on("[email protected]" + bfpk_openmp, when="@0.8.0 +butterflypack")

xsdk_depends_on("heffte+fftw", when="+heffte ~rocm")
xsdk_depends_on(
"[email protected]",
when="@1.1.0 +heffte",
cuda_var=["cuda", "?magma"],
rocm_var=["rocm", "?magma"],
)
xsdk_depends_on(
"[email protected]+fftw",
"[email protected]",
when="@1.0.0 +heffte",
cuda_var=["cuda", "?magma"],
rocm_var=["rocm", "?magma"],
)
xsdk_depends_on(
"[email protected]+fftw",
"[email protected]",
when="@0.8.0 +heffte",
cuda_var=["cuda", "?magma"],
rocm_var=["rocm", "?magma"],
)

xsdk_depends_on("[email protected]", when="@1.1.0 +slate", cuda_var="cuda")
xsdk_depends_on("[email protected]", when="@1.0.0 +slate", cuda_var="cuda")
xsdk_depends_on("[email protected]", when="@0.8.0 +slate", cuda_var="cuda")

Expand All @@ -296,6 +360,8 @@ class Xsdk(BundlePackage, CudaPackage, ROCmPackage):
xsdk_depends_on("[email protected]~ipopt~hiop~python", when="@0.8.0 +exago ~raja")
xsdk_depends_on("[email protected]~ipopt+hiop+raja", when="@0.8.0 +exago +raja", cuda_var="cuda")

xsdk_depends_on("[email protected]", when="@1.1.0 +hiop ~raja")
xsdk_depends_on("[email protected]+raja", when="@1.1.0 +hiop +raja", cuda_var="cuda")
xsdk_depends_on("[email protected]", when="@1.0.0 +hiop ~raja")
xsdk_depends_on("[email protected]+raja", when="@1.0.0 +hiop +raja", cuda_var="cuda")
xsdk_depends_on("[email protected]", when="@0.8.0 +hiop ~raja")
Expand Down

0 comments on commit f41b38e

Please sign in to comment.