qrupdate: update to use oneapi packages (#49304)

Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
Massimiliano Culpo 2025-03-05 19:44:37 +01:00 committed by GitHub
parent 5aae6e25a5
commit 313524dc6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,8 @@
class Qrupdate(MakefilePackage, SourceforgePackage):
"""qrupdate is a Fortran library for fast updates of QR and
Cholesky decompositions."""
Cholesky decompositions.
"""
homepage = "https://sourceforge.net/projects/qrupdate/"
sourceforge_mirror_path = "qrupdate/qrupdate-1.1.2.tar.gz"
@ -35,7 +36,7 @@ def edit(self, spec, prefix):
makefile = FileFilter("Makefile")
makefile.filter("make", "$(MAKE)")
# We may like to compile with any Forran compiler, not always gfortran
# We may like to compile with any Fortran compiler, not always gfortran
makefile = FileFilter("Makeconf")
makefile.filter("FC=gfortran", "FC ?= gfortran")
@ -45,16 +46,11 @@ def edit(self, spec, prefix):
def build(self, spec, prefix):
lapack_blas = spec["lapack"].libs + spec["blas"].libs
make_args = [
"BLAS={0}".format(lapack_blas.ld_flags),
"LAPACK={0}".format(lapack_blas.ld_flags),
]
make_args = [f"BLAS={lapack_blas.ld_flags}", f"LAPACK={lapack_blas.ld_flags}"]
# If 64-bit BLAS is used:
if (
spec.satisfies("^openblas+ilp64")
or spec.satisfies("^intel-mkl+ilp64")
or spec.satisfies("^intel-parallel-studio+mkl+ilp64")
if spec.satisfies("^[virtuals=lapack] openblas+ilp64") or spec.satisfies(
"^[virtuals=lapack] intel-oneapi-mkl+ilp64"
):
if spec.satisfies("%intel") or spec.satisfies("%oneapi") or spec.satisfies("%nvhpc"):
# 64bits integer for ifort and nvfortran are promoted by: