@@ -49,19 +49,19 @@ class Amg2023(CMakePackage, CudaPackage, ROCmPackage):
4949 depends_on ("blas" )
5050 depends_on ("lapack" )
5151
52- depends_on ("umpire" , when = "+umpire " )
53- depends_on ("hypre+umpire " , when = "+umpire " )
54- depends_on ( "hypre~umpire" , when = "~umpire" )
55- depends_on ( "hypre+cuda" , when = "+cuda" )
56- depends_on ("hypre+openmp" , when = "+openmp" )
57- requires ( "+cuda" , when = "^hypre+cuda" )
58- for arch in ( "none" , "50" , "60" , "70" , "80" , "90" ):
59- depends_on (f "hypre cuda_arch= { arch } " , when = f"cuda_arch= { arch } " )
60-
61- depends_on ( "hypre+rocm" , when = "+rocm" )
62- requires ( "+rocm" , when = "^hypre+rocm" )
63- for target in ( "none" , "gfx803" , "gfx900" , "gfx906" , "gfx908" , "gfx90a" , "gfx942" ):
64- depends_on (f"hypre amdgpu_target={ target } " , when = f "amdgpu_target={ target } " )
52+ depends_on ("hypre+cuda+mpi+ umpire" , when = "+cuda " )
53+ depends_on ("hypre~cuda " , when = "~cuda " )
54+
55+ for sm_ in CudaPackage . cuda_arch_values :
56+ depends_on ("hypre cuda_arch={0}" . format ( sm_ ) , when = "cuda_arch={0}" . format ( sm_ ) )
57+ depends_on ( "umpire cuda_arch={0}" . format ( sm_ ) , when = "cuda_arch={0}" . format ( sm_ ) )
58+
59+ depends_on ("hypre+rocm+mpi+umpire " , when = "+rocm " )
60+ depends_on ( "hypre~rocm" , when = "~rocm" )
61+
62+ for arch in ROCmPackage . amdgpu_targets :
63+ depends_on ( "hypre amdgpu_target={0}" . format ( arch ), when = "amdgpu_target={0}" . format ( arch ))
64+ depends_on ("umpire amdgpu_target={0}" . format ( arch ) , when = "amdgpu_target={0}" . format ( arch ) )
6565
6666 depends_on ("hypre+gpu-aware-mpi" , when = "+mpi+gpu-aware-mpi" )
6767
0 commit comments