Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
ab764571
提交
ab764571
authored
9月 13, 2016
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make Theano reuse mkl from miniconda 4.1.11 with mkl-service packages
上级
8d2a4cdc
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
13 行增加
和
4 行删除
+13
-4
configdefaults.py
theano/configdefaults.py
+13
-4
没有找到文件。
theano/configdefaults.py
浏览文件 @
ab764571
...
...
@@ -1253,7 +1253,7 @@ def default_blas_ldflags():
"mk2_rt"
]])
# Anaconda
if
"Anaconda"
in
sys
.
version
and
sys
.
platform
==
"win32"
:
if
"Anaconda"
in
sys
.
version
or
"Continuum"
in
sys
.
version
:
# If the "mkl-service" conda package (available
# through Python package "mkl") is installed and
# importable, then the libraries (installed by conda
...
...
@@ -1266,14 +1266,23 @@ def default_blas_ldflags():
_logger
.
info
(
'Conda mkl is not available:
%
s'
,
e
)
else
:
# This branch is executed if no exception was raised
lib_path
=
os
.
path
.
join
(
sys
.
prefix
,
'DLLs'
)
flags
=
[
'-L"
%
s"'
%
lib_path
]
if
sys
.
platform
==
"win32"
:
lib_path
=
os
.
path
.
join
(
sys
.
prefix
,
'DLLs'
)
flags
=
[
'-L"
%
s"'
%
lib_path
]
else
:
lib_path
=
blas_info
.
get
(
'library_dirs'
,
[])[
0
]
flags
=
[
'-L
%
s'
%
lib_path
]
flags
+=
[
'-l
%
s'
%
l
for
l
in
[
"mkl_core"
,
"mkl_intel_thread"
,
"mkl_rt"
]]
res
=
try_blas_flag
(
flags
)
if
res
:
return
res
flags
.
extend
([
'-Wl,-rpath,'
+
l
for
l
in
blas_info
.
get
(
'library_dirs'
,
[])])
res
=
try_blas_flag
(
flags
)
if
res
:
return
res
# to support path that includes spaces, we need to wrap it with double quotes on Windows
path_wrapper
=
"
\"
"
if
os
.
name
==
'nt'
else
""
...
...
@@ -1344,7 +1353,7 @@ def try_blas_flag(flags):
return 0;
}
"""
)
cflags
=
flags
cflags
=
list
(
flags
)
# to support path that includes spaces, we need to wrap it with double quotes on Windows
path_wrapper
=
"
\"
"
if
os
.
name
==
'nt'
else
""
cflags
.
extend
([
'-L
%
s
%
s
%
s'
%
(
path_wrapper
,
d
,
path_wrapper
)
for
d
in
theano
.
gof
.
cmodule
.
std_lib_dirs
()])
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论