提交 b7dda09a authored 作者: Dumitru Erhan's avatar Dumitru Erhan

merge

...@@ -20,10 +20,12 @@ from theano.tensor.blas_headers import cblas_header_text, blas_header_text ...@@ -20,10 +20,12 @@ from theano.tensor.blas_headers import cblas_header_text, blas_header_text
def default_blas_ldflags(): def default_blas_ldflags():
try: try:
return ' '.join('-l%s'%l return ' '.join(
for l in numpy.distutils.__config__.blas_opt_info['libraries']+ #TODO: the Gemm op below should separate the -L and -l arguments into the two callbacks that CLinker uses for that stuff.
'-L%s'%l for l in numpy.distutils.__config__.blas_opt_info['library_dirs']) # for now, we just pass the whole ldflags as the -l options part.
except: #['-L%s'%l for l in numpy.distutils.__config__.blas_opt_info['library_dirs']] +
['-l%s'%l for l in numpy.distutils.__config__.blas_opt_info['libraries']])
except KeyError:
return "-lblas" return "-lblas"
AddConfigVar('blas.ldflags', AddConfigVar('blas.ldflags',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论