@@ -2820,31 +2820,31 @@ def check_libs(all_libs, required_libs, extra_compile_flags=None):
2820
2820
except Exception :
2821
2821
pass
2822
2822
try :
2823
- # 3. Try to use openblas
2823
+ # 3. Try to use LAPACK + BLAS
2824
2824
return check_libs (
2825
2825
all_libs ,
2826
- required_libs = ["openblas" , "gfortran" , "gomp" , "m" ],
2827
- extra_compile_flags = ["-fopenmp" , f"-Wl,-rpath,{ rpath } " ]
2828
- if rpath is not None
2829
- else ["-fopenmp" ],
2826
+ required_libs = ["lapack" , "blas" , "cblas" , "m" ],
2827
+ extra_compile_flags = [f"-Wl,-rpath,{ rpath } " ] if rpath is not None else [],
2830
2828
)
2831
2829
except Exception :
2832
2830
pass
2833
2831
try :
2834
- # 4. Try to use LAPACK
2832
+ # 4. Try to use BLAS alone
2835
2833
return check_libs (
2836
2834
all_libs ,
2837
- required_libs = ["lapack" , " blas" , "cblas" , "m " ],
2835
+ required_libs = ["blas" , "cblas" ],
2838
2836
extra_compile_flags = [f"-Wl,-rpath,{ rpath } " ] if rpath is not None else [],
2839
2837
)
2840
2838
except Exception :
2841
2839
pass
2842
2840
try :
2843
- # 5. Try to use blas
2841
+ # 5. Try to use openblas
2844
2842
return check_libs (
2845
2843
all_libs ,
2846
- required_libs = ["blas" , "cblas" ],
2847
- extra_compile_flags = [f"-Wl,-rpath,{ rpath } " ] if rpath is not None else [],
2844
+ required_libs = ["openblas" , "gfortran" , "gomp" , "m" ],
2845
+ extra_compile_flags = ["-fopenmp" , f"-Wl,-rpath,{ rpath } " ]
2846
+ if rpath is not None
2847
+ else ["-fopenmp" ],
2848
2848
)
2849
2849
except Exception :
2850
2850
pass
0 commit comments