1- # Copyright 2023 Lawrence Livermore National Security, LLC and other
2- # Benchpark Project Developers. See the top-level COPYRIGHT file for details.
1+ # Copyright Spack Project Developers. See COPYRIGHT file for details.
32#
4- # SPDX-License-Identifier: Apache-2.0
3+ # SPDX-License-Identifier: ( Apache-2.0 OR MIT)
54
65from spack .package import *
76
@@ -10,7 +9,7 @@ class Amg2023(CMakePackage, CudaPackage, ROCmPackage):
109 """AMG2023 is a parallel algebraic multigrid solver for linear systems
1110 arising from problems on unstructured grids. The driver provided here
1211 builds linear systems for various 3-dimensional problems. It requires
13- an installation of hypre-2.31 .0 or higher.
12+ an installation of hypre-2.27 .0 or higher.
1413 """
1514
1615 tags = ["benchmark" ]
@@ -21,6 +20,8 @@ class Amg2023(CMakePackage, CudaPackage, ROCmPackage):
2120
2221 version ("develop" , branch = "main" )
2322
23+ depends_on ("c" , type = "build" ) # generated
24+
2425 variant ("mpi" , default = True , description = "Enable MPI support" )
2526 variant ("openmp" , default = False , description = "Enable OpenMP support" )
2627 variant ("caliper" , default = False , description = "Enable Caliper monitoring" )
@@ -31,22 +32,11 @@ class Amg2023(CMakePackage, CudaPackage, ROCmPackage):
3132 depends_on ("caliper" , when = "+caliper" )
3233 depends_on ("adiak" , when = "+caliper" )
3334 depends_on ("hypre+caliper" , when = "+caliper" )
34- depends_on ("hypre@2.31.0:" )
35- depends_on ("hypre+mixedint~fortran" )
36-
35+ depends_on ("hypre@2.27.0:" )
3736 depends_on ("hypre+cuda" , when = "+cuda" )
3837 requires ("+cuda" , when = "^hypre+cuda" )
39- for arch in ("none" , "50" , "60" , "70" , "80" , "90" ):
40- depends_on (f"hypre cuda_arch={ arch } " , when = f"cuda_arch={ arch } " )
41-
4238 depends_on ("hypre+rocm" , when = "+rocm" )
4339 requires ("+rocm" , when = "^hypre+rocm" )
44- for target in ("none" , "gfx803" , "gfx900" , "gfx906" , "gfx908" , "gfx90a" , "gfx942" ):
45- depends_on (f"hypre amdgpu_target={ target } " , when = f"amdgpu_target={ target } " )
46-
47- def setup_build_environment (self , env ):
48- if "+cuda" in self .spec :
49- env .set ("NVCC_APPEND_FLAGS" , "-allow-unsupported-compiler" )
5040
5141 def cmake_args (self ):
5242 cmake_options = []
0 commit comments