[sundials] fix cmake argument generation for '+magma' (#33858)

[dealii] force cmake to accept Scalapack settings from Spack
This commit is contained in:
Veselin Dobrev 2022-11-13 07:50:57 -08:00 committed by GitHub
parent 3d811617e6
commit a5d35c3077
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -591,6 +591,9 @@ def cmake_args(self):
self.define("SCALAPACK_FOUND", True),
self.define("SCALAPACK_INCLUDE_DIRS", spec["scalapack"].prefix.include),
self.define("SCALAPACK_LIBRARIES", scalapack_libs.joined(";")),
# If SCALAPACK_LIBRARY is not set, deal.II still searches
# for SCALAPACK despite the above settings:
self.define("SCALAPACK_LIBRARY", scalapack_libs.joined(";")),
]
)

View file

@ -452,9 +452,9 @@ def cmake_args(self):
if "+magma" in spec:
args.extend([define("ENABLE_MAGMA", True), define("MAGMA_DIR", spec["magma"].prefix)])
if "+cuda" in spec:
define("SUNDIALS_MAGMA_BACKENDS", "CUDA")
args.extend([define("SUNDIALS_MAGMA_BACKENDS", "CUDA")])
if "+rocm" in spec:
define("SUNDIALS_MAGMA_BACKENDS", "HIP")
args.extend([define("SUNDIALS_MAGMA_BACKENDS", "HIP")])
# Building with PETSc
if "+petsc" in spec: