petsc/petsc-3.17.0-avoid_fake_MKL_detection.patch
2022-04-23 16:51:40 +02:00

14 lines
748 B
Diff

--- a/config/BuildSystem/config/packages/BlasLapack.orig.py 2020-11-03 19:01:59.000000000 +0100
+++ b/config/BuildSystem/config/packages/BlasLapack.py 2020-11-09 10:37:06.551705855 +0100
@@ -567,8 +567,8 @@
'''Check for Intel MKL library'''
self.libraries.saveLog()
if self.libraries.check(self.dlib, 'mkl_set_num_threads') and not self.libraries.check(self.dlib, 'flexiblas_avail'):
- self.mkl = 1
- self.addDefine('HAVE_MKL_LIBS',1)
+ self.mkl = 0
+ self.addDefine('HAVE_MKL_LIBS',0)
'''Set include directory for mkl.h and friends'''
'''(the include directory is in CPATH if mklvars.sh has been sourced.'''
''' if the script hasn't been sourced, we still try to pick up the include dir)'''