Skip to content

Commit

Permalink
Update hypre, remove magic compiler (#270)
Browse files Browse the repository at this point in the history
Update hypre, removve magic compiler

Co-authored-by: Riyaz Haque <[email protected]>
Co-authored-by: pearce8 <[email protected]>
  • Loading branch information
3 people authored Jun 7, 2024
1 parent 7971072 commit 5113774
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion experiments/amg2023/cuda/ramble.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ ramble:
spack_spec: cuda@{default_cuda_version}+allow-unsupported-compilers
compiler: default-compiler
hypre:
spack_spec: hypre@2.28.0 +mpi+cuda+mixedint{modifier_spack_variant} cuda_arch=={cuda_arch}
spack_spec: hypre@2.31.0 +mpi+cuda+mixedint~fortran{modifier_spack_variant} cuda_arch=={cuda_arch}
compiler: default-compiler
amg2023:
spack_spec: amg2023@develop +mpi+cuda{modifier_spack_variant} cuda_arch=={cuda_arch}
Expand Down
2 changes: 1 addition & 1 deletion experiments/amg2023/openmp/ramble.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ramble:
concretized: true
packages:
hypre-omp:
spack_spec: [email protected] +mpi+openmp+mixedint{modifier_spack_variant}
spack_spec: [email protected] +mpi+openmp+mixedint~fortran{modifier_spack_variant}
compiler: default-compiler
amg2023-omp:
spack_spec: amg2023@develop +mpi+openmp{modifier_spack_variant}
Expand Down
2 changes: 1 addition & 1 deletion experiments/amg2023/rocm/ramble.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ramble:
gtl: ["gtl", "no-gtl"]
packages:
hypre-{gtl}:
spack_spec: hypre@2.28.0 +mpi+rocm+mixedint{modifier_spack_variant} amdgpu_target={rocm_arch}
spack_spec: hypre@2.31.0 +mpi+rocm+mixedint~fortran{modifier_spack_variant} amdgpu_target={rocm_arch}
compiler: compiler-rocm
amg2023-gpu-{gtl}:
spack_spec: amg2023@develop +mpi+rocm{modifier_spack_variant} amdgpu_target={rocm_arch}
Expand Down
6 changes: 6 additions & 0 deletions repo/hypre/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ class Hypre(BuiltinHypre):
def configure_args(self):
configure_args = super().configure_args()

if (self.compiler.fc and 'xlf' in self.compiler.fc) or (self.compiler.f77 and 'xlf' in self.compiler.f77):
if not "+fortran" in self.spec:
configure_args.append("--with-fmangle=no-underscores")
configure_args.append("--with-fmangle-blas=no-underscores")
configure_args.append("--with-fmangle-lapack=no-underscores")

if self.spec["blas"].satisfies("rocblas"):
configure_args.append("--enable-rocblas")
if self.spec.satisfies("^cray-mpich+gtl"):
Expand Down

0 comments on commit 5113774

Please sign in to comment.