qrupdate: update to use oneapi packages (#49304)
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
parent
5aae6e25a5
commit
313524dc6d
@ -10,7 +10,8 @@
|
|||||||
|
|
||||||
class Qrupdate(MakefilePackage, SourceforgePackage):
|
class Qrupdate(MakefilePackage, SourceforgePackage):
|
||||||
"""qrupdate is a Fortran library for fast updates of QR and
|
"""qrupdate is a Fortran library for fast updates of QR and
|
||||||
Cholesky decompositions."""
|
Cholesky decompositions.
|
||||||
|
"""
|
||||||
|
|
||||||
homepage = "https://sourceforge.net/projects/qrupdate/"
|
homepage = "https://sourceforge.net/projects/qrupdate/"
|
||||||
sourceforge_mirror_path = "qrupdate/qrupdate-1.1.2.tar.gz"
|
sourceforge_mirror_path = "qrupdate/qrupdate-1.1.2.tar.gz"
|
||||||
@ -35,7 +36,7 @@ def edit(self, spec, prefix):
|
|||||||
makefile = FileFilter("Makefile")
|
makefile = FileFilter("Makefile")
|
||||||
makefile.filter("make", "$(MAKE)")
|
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 = FileFilter("Makeconf")
|
||||||
makefile.filter("FC=gfortran", "FC ?= gfortran")
|
makefile.filter("FC=gfortran", "FC ?= gfortran")
|
||||||
|
|
||||||
@ -45,16 +46,11 @@ def edit(self, spec, prefix):
|
|||||||
def build(self, spec, prefix):
|
def build(self, spec, prefix):
|
||||||
lapack_blas = spec["lapack"].libs + spec["blas"].libs
|
lapack_blas = spec["lapack"].libs + spec["blas"].libs
|
||||||
|
|
||||||
make_args = [
|
make_args = [f"BLAS={lapack_blas.ld_flags}", f"LAPACK={lapack_blas.ld_flags}"]
|
||||||
"BLAS={0}".format(lapack_blas.ld_flags),
|
|
||||||
"LAPACK={0}".format(lapack_blas.ld_flags),
|
|
||||||
]
|
|
||||||
|
|
||||||
# If 64-bit BLAS is used:
|
# If 64-bit BLAS is used:
|
||||||
if (
|
if spec.satisfies("^[virtuals=lapack] openblas+ilp64") or spec.satisfies(
|
||||||
spec.satisfies("^openblas+ilp64")
|
"^[virtuals=lapack] intel-oneapi-mkl+ilp64"
|
||||||
or spec.satisfies("^intel-mkl+ilp64")
|
|
||||||
or spec.satisfies("^intel-parallel-studio+mkl+ilp64")
|
|
||||||
):
|
):
|
||||||
if spec.satisfies("%intel") or spec.satisfies("%oneapi") or spec.satisfies("%nvhpc"):
|
if spec.satisfies("%intel") or spec.satisfies("%oneapi") or spec.satisfies("%nvhpc"):
|
||||||
# 64bits integer for ifort and nvfortran are promoted by:
|
# 64bits integer for ifort and nvfortran are promoted by:
|
||||||
|
Loading…
Reference in New Issue
Block a user