Skip to content

Commit

Permalink
Merge pull request #315 from awslabs/simlapointe/spack-bugfix
Browse files Browse the repository at this point in the history
Fix spack build issue when using ^ in depends_on
  • Loading branch information
simlapointe authored Dec 13, 2024
2 parents 421a637 + 53ff6b2 commit 79129e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spack/local/packages/palace/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ class Palace(CMakePackage, CudaPackage, ROCmPackage):
depends_on(f"superlu-dist{cuda_variant}", when=f"+superlu-dist{cuda_variant}")
depends_on(f"strumpack{cuda_variant}", when=f"+strumpack{cuda_variant}")
depends_on(f"sundials{cuda_variant}", when=f"+sundials{cuda_variant}")
depends_on(f"slepc{cuda_variant} ^petsc{cuda_variant}", when=f"+slepc{cuda_variant}")
depends_on(f"slepc{cuda_variant}", when=f"+slepc{cuda_variant}")
depends_on(f"petsc{cuda_variant}", when=f"+slepc{cuda_variant}")
depends_on(f"magma{cuda_variant}", when=f"+magma{cuda_variant}")
with when("+rocm"):
for arch in ROCmPackage.amdgpu_targets:
Expand All @@ -134,7 +135,8 @@ class Palace(CMakePackage, CudaPackage, ROCmPackage):
depends_on(f"superlu-dist{rocm_variant}", when=f"+superlu-dist{rocm_variant}")
depends_on(f"strumpack{rocm_variant}", when=f"+strumpack{rocm_variant}")
depends_on(f"sundials{rocm_variant}", when=f"+sundials{rocm_variant}")
depends_on(f"slepc{rocm_variant} ^petsc{rocm_variant}", when=f"+slepc{rocm_variant}")
depends_on(f"slepc{rocm_variant}", when=f"+slepc{rocm_variant}")
depends_on(f"petsc{rocm_variant}", when=f"+slepc{rocm_variant}")
depends_on(f"magma{rocm_variant}", when=f"+magma{rocm_variant}")

# Palace always builds its own internal MFEM, libCEED, and GSLIB
Expand Down

0 comments on commit 79129e2

Please sign in to comment.