Openblas clang fix (#5065)
* Added a package for the MDAnalysis toolkit. * Openblas now builds with clang when using 0.2.20 * Fixed flake8 error * Added a guard to fail for openblas+openmp when on OSX systems * Changed the guard to look for Apple's build of clang and to improve the error messages. * Removed blank line.
This commit is contained in:
parent
8df9f9e1f4
commit
7b51791625
1 changed files with 9 additions and 6 deletions
|
@ -84,11 +84,14 @@ def check_compilers(self):
|
|||
'OpenBLAS requires both C and Fortran compilers!'
|
||||
)
|
||||
# Add support for OpenMP
|
||||
if '+openmp' in self.spec and self.spec.satisfies('%clang'):
|
||||
# Openblas (as of 0.2.18) hardcoded that OpenMP cannot
|
||||
if (('+openmp' in self.spec) and self.spec.satisfies('%clang')):
|
||||
if str(self.spec.compiler.version).endswith('-apple'):
|
||||
raise InstallError("Apple's clang does not support OpenMP")
|
||||
if '@:0.2.19' in self.spec:
|
||||
# Openblas (as of 0.2.19) hardcoded that OpenMP cannot
|
||||
# be used with any (!) compiler named clang, bummer.
|
||||
raise InstallError(
|
||||
'OpenBLAS does not support OpenMP with clang!'
|
||||
'OpenBLAS @:0.2.19 does not support OpenMP with clang!'
|
||||
)
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in a new issue