LAPACK: add API compatibility versions (#29828)

This commit is contained in:
Adam J. Stewart 2022-05-05 03:38:20 -05:00 committed by GitHub
parent 24fecdc738
commit cef9245ee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 1 deletions

View File

@ -50,6 +50,7 @@ class Atlas(Package):
provides('blas')
provides('lapack')
provides('lapack@3.6.1')
parallel = False

View File

@ -77,6 +77,8 @@ class IntelMkl(IntelPackage):
provides('blas')
provides('lapack')
provides('lapack@3.9.0', when='@2020.4')
provides('lapack@3.7.0', when='@11.3')
provides('scalapack')
provides('mkl')
provides('fftw-api@3', when='@2017:')

View File

@ -37,6 +37,13 @@ class NetlibLapack(CMakePackage):
version('3.4.0', sha256='a7139ef97004d0e3c4c30f1c52d508fd7ae84b5fbaf0dd8e792c167dc306c3e9')
version('3.3.1', sha256='56821ab51c29369a34e5085728f92c549a9aa926f26acf7eeac87b61eed329e4')
# netlib-lapack is the reference implementation of LAPACK
for ver in [
'3.9.1', '3.9.0', '3.8.0', '3.7.1', '3.7.0', '3.6.1',
'3.6.0', '3.5.0', '3.4.2', '3.4.1', '3.4.0', '3.3.1'
]:
provides('lapack@' + ver, when='@' + ver)
variant('shared', default=True, description="Build shared library version")
variant('external-blas', default=False,
description='Build lapack with an external blas')

View File

@ -68,6 +68,8 @@ class Openblas(MakefilePackage):
# virtual dependency
provides('blas')
provides('lapack')
provides('lapack@3.9.1:', when='@0.3.15:')
provides('lapack@3.7.0', when='@0.2.20')
# OpenBLAS >=3.0 has an official way to disable internal parallel builds
patch('make.patch', when='@0.2.16:0.2.20')

View File

@ -86,6 +86,8 @@ class PyScipy(PythonPackage):
# http://www.scipy.org/scipylib/building/linux.html#step-4-build-numpy-1-5-0
depends_on('blas')
depends_on('lapack')
# https://github.com/scipy/scipy/wiki/Dropping-support-for-Accelerate
depends_on('lapack@3.4.1:', when='@1.2:')
# https://github.com/scipy/scipy/issues/12860
patch('https://git.sagemath.org/sage.git/plain/build/pkgs/scipy/patches/extern_decls.patch?id=711fe05025795e44b84233e065d240859ccae5bd',

View File

@ -25,7 +25,8 @@ class Veclibfort(Package):
# virtual dependency
provides('blas')
provides('lapack')
# https://github.com/scipy/scipy/wiki/Dropping-support-for-Accelerate
provides('lapack@3.2.1')
@property
def libs(self):