petsc/petsc-3.17.0-avoid_fake_MKL_detection.patch

14 lines
748 B
Diff
Raw Normal View History

2020-11-20 11:35:13 +00:00
--- 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
2022-04-23 14:51:40 +00:00
@@ -567,8 +567,8 @@
2020-11-20 11:35:13 +00:00
'''Check for Intel MKL library'''
self.libraries.saveLog()
2022-04-23 14:51:40 +00:00
if self.libraries.check(self.dlib, 'mkl_set_num_threads') and not self.libraries.check(self.dlib, 'flexiblas_avail'):
2020-11-20 11:35:13 +00:00
- self.mkl = 1
2022-04-23 14:51:40 +00:00
- self.addDefine('HAVE_MKL_LIBS',1)
2020-11-20 11:35:13 +00:00
+ self.mkl = 0
2022-04-23 14:51:40 +00:00
+ self.addDefine('HAVE_MKL_LIBS',0)
2020-11-20 11:35:13 +00:00
'''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)'''