fix mpi lib paths, add virtual provides (#20693)

This commit is contained in:
Robert Cohn 2021-01-06 13:37:24 -05:00 committed by GitHub
parent 844d98f727
commit 74a54077f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 0 deletions

View file

@ -19,6 +19,8 @@ class IntelOneapiIpp(IntelOneApiLibraryPackage):
version('2021.1.1', sha256='2656a3a7f1f9f1438cbdf98fd472a213c452754ef9476dd65190a7d46618ba86', expand=False) version('2021.1.1', sha256='2656a3a7f1f9f1438cbdf98fd472a213c452754ef9476dd65190a7d46618ba86', expand=False)
provides('ipp')
def __init__(self, spec): def __init__(self, spec):
self.component_info(dir_name='ipp', self.component_info(dir_name='ipp',
components='intel.oneapi.lin.ipp.devel', components='intel.oneapi.lin.ipp.devel',

View file

@ -19,6 +19,12 @@ class IntelOneapiMkl(IntelOneApiLibraryPackage):
version('2021.1.1', sha256='818b6bd9a6c116f4578cda3151da0612ec9c3ce8b2c8a64730d625ce5b13cc0c', expand=False) version('2021.1.1', sha256='818b6bd9a6c116f4578cda3151da0612ec9c3ce8b2c8a64730d625ce5b13cc0c', expand=False)
provides('fftw-api@3')
provides('scalapack')
provides('mkl')
provides('lapack')
provides('blas')
def __init__(self, spec): def __init__(self, spec):
self.component_info(dir_name='mkl', self.component_info(dir_name='mkl',
components='intel.oneapi.lin.mkl.devel', components='intel.oneapi.lin.mkl.devel',

View file

@ -19,9 +19,20 @@ class IntelOneapiMpi(IntelOneApiLibraryPackage):
version('2021.1.1', sha256='8b7693a156c6fc6269637bef586a8fd3ea6610cac2aae4e7f48c1fbb601625fe', expand=False) version('2021.1.1', sha256='8b7693a156c6fc6269637bef586a8fd3ea6610cac2aae4e7f48c1fbb601625fe', expand=False)
provides('mpi@:3')
def __init__(self, spec): def __init__(self, spec):
self.component_info(dir_name='mpi', self.component_info(dir_name='mpi',
components='intel.oneapi.lin.mpi.devel', components='intel.oneapi.lin.mpi.devel',
releases=releases, releases=releases,
url_name='mpi_oneapi') url_name='mpi_oneapi')
super(IntelOneapiMpi, self).__init__(spec) super(IntelOneapiMpi, self).__init__(spec)
@property
def libs(self):
libs = []
for dir in ['lib/release_mt', 'lib', 'libfabric/lib']:
lib_path = '{0}/{1}/latest/{2}'.format(self.prefix, self._dir_name, dir)
ldir = find_libraries('*', root=lib_path, shared=True, recursive=False)
libs += ldir
return libs

View file

@ -19,6 +19,8 @@ class IntelOneapiTbb(IntelOneApiLibraryPackage):
version('2021.1.1', sha256='535290e3910a9d906a730b24af212afa231523cf13a668d480bade5f2a01b53b', expand=False) version('2021.1.1', sha256='535290e3910a9d906a730b24af212afa231523cf13a668d480bade5f2a01b53b', expand=False)
provides('tbb')
def __init__(self, spec): def __init__(self, spec):
self.component_info(dir_name='tbb', self.component_info(dir_name='tbb',
components='intel.oneapi.lin.tbb.devel', components='intel.oneapi.lin.tbb.devel',