提交 ab3467d2 authored 作者: Frederic Bastien's avatar Frederic Bastien

More robust blas version detection: don't reuse numpy blas config if the library_dirs don't exist.

上级 f8cbc2d9
......@@ -99,6 +99,9 @@ gemv_inplace = Gemv(inplace=True)
def default_blas_ldflags():
try:
#if numpy was linked with library that are not installed, we can't reuse them.
if all(not os.path.exists(dir) for dir in numpy.distutils.__config__.blas_opt_info['library_dirs']):
return "-lblas"
return ' '.join(
#TODO: the Gemm op below should separate the -L and -l arguments into the two callbacks that CLinker uses for that stuff.
# for now, we just pass the whole ldflags as the -l options part.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论