Skip to content

Commit

Permalink
Merge pull request #1294 from LLNL/task/white238/update_spack_package…
Browse files Browse the repository at this point in the history
…_03_18_2024

Update Spack version constraints
  • Loading branch information
white238 committed Mar 19, 2024
2 parents 3f59b0c + 3bce6c5 commit 916c858
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 24 deletions.
27 changes: 15 additions & 12 deletions scripts/spack/packages/axom/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class Axom(CachedCMakePackage, CudaPackage, ROCmPackage):

depends_on("blt", type="build")
depends_on("blt@0.5.1:", type="build", when="@0.6.1:")
depends_on("blt@0.6.2:", type="build", when="@0.9:")

depends_on("mpi", when="+mpi")

Expand All @@ -122,12 +123,14 @@ class Axom(CachedCMakePackage, CudaPackage, ROCmPackage):
depends_on("scr~fortran", when="+scr~fortran")

with when("+umpire"):
depends_on("umpire@2024.02.0:", when="@0.9:")
depends_on("umpire@2022.03.0:", when="@0.7.0:")
depends_on("umpire@6.0.0", when="@0.6.0")
depends_on("umpire@5:5.0.1", when="@:0.5.0")
depends_on("umpire +openmp", when="+openmp")

with when("+raja"):
depends_on("raja@2024.02.0:", when="@0.9:")
depends_on("raja@2022.03.0:", when="@0.7.0:")
depends_on("raja@0.14.0", when="@0.6.0")
depends_on("raja@:0.13.0", when="@:0.5.0")
Expand Down Expand Up @@ -419,21 +422,21 @@ def initconfig_mpi_entries(self):
entries.append(cmake_cache_option("ENABLE_MPI", True))
if spec["mpi"].name == "spectrum-mpi":
entries.append(cmake_cache_string("BLT_MPI_COMMAND_APPEND", "mpibind"))

# Replace /usr/bin/srun path with srun flux wrapper path on TOSS 4
# TODO: Remove this logic by adding `using_flux` case in
# spack/lib/spack/spack/build_systems/cached_cmake.py:196 and remove hard-coded
# path to srun in same file.
if "toss_4" in self._get_sys_type(spec):
srun_wrapper = which_string("srun")
mpi_exec_index = [
index for index, entry in enumerate(entries) if "MPIEXEC_EXECUTABLE" in entry
]
del entries[mpi_exec_index[0]]
entries.append(cmake_cache_path("MPIEXEC_EXECUTABLE", srun_wrapper))
else:
entries.append(cmake_cache_option("ENABLE_MPI", False))

# Replace /usr/bin/srun path with srun flux wrapper path on TOSS 4
# TODO: Remove this logic by adding `using_flux` case in
# spack/lib/spack/spack/build_systems/cached_cmake.py:196 and remove hard-coded
# path to srun in same file.
if "toss_4" in self._get_sys_type(spec):
srun_wrapper = which_string("srun")
mpi_exec_index = [
index for index, entry in enumerate(entries) if "MPIEXEC_EXECUTABLE" in entry
]
del entries[mpi_exec_index[0]]
entries.append(cmake_cache_path("MPIEXEC_EXECUTABLE", srun_wrapper))

return entries

def find_path_replacement(self, path1, path2, path_replacements, name, entries):
Expand Down
11 changes: 0 additions & 11 deletions scripts/spack/packages/blt/package.py

This file was deleted.

0 comments on commit 916c858

Please sign in to comment.