Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
332d2fd7
提交
332d2fd7
authored
6月 23, 2015
作者:
Pascal Lamblin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use "mkl" package (mkl-service in conda) to check for MKL availability
上级
9d0f6f8b
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
15 行增加
和
12 行删除
+15
-12
blas.py
theano/tensor/blas.py
+15
-12
没有找到文件。
theano/tensor/blas.py
浏览文件 @
332d2fd7
...
@@ -291,20 +291,27 @@ SOMEPATH/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/system_in
...
@@ -291,20 +291,27 @@ SOMEPATH/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/system_in
"mk2_rt"
]])
"mk2_rt"
]])
# Anaconda
# Anaconda
if
"Anaconda"
in
sys
.
version
and
sys
.
platform
==
"win32"
:
if
"Anaconda"
in
sys
.
version
and
sys
.
platform
==
"win32"
:
lib_path
=
os
.
path
.
join
(
sys
.
prefix
,
'pkgs'
)
# If the "mkl-service" conda package (available through Python
for
dir
in
os
.
listdir
(
lib_path
):
# package "mkl") is installed and importable, then the libraries
if
dir
.
startswith
(
"mkl-rt-"
):
# (installed by conda package "mkl-rt") are actually available.
lib_path
=
os
.
path
.
join
(
lib_path
,
dir
,
"DLLs"
)
# Using "conda install mkl" will install both, as well as
break
# optimized versions of numpy and scipy.
if
os
.
path
.
exists
(
lib_path
):
try
:
#-LC:\\Users\\*\\Anaconda\\libs
import
mkl
except
ImportError
as
e
:
_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
]
flags
=
[
'-L
%
s'
%
lib_path
]
flags
+=
[
'-l
%
s'
%
l
for
l
in
[
"mkl_core"
,
flags
+=
[
'-l
%
s'
%
l
for
l
in
[
"mkl_core"
,
"mkl_intel_thread"
,
"mkl_intel_thread"
,
"mkl_rt"
]]
"mkl_rt"
]]
if
GCC_compiler
.
try_flags
(
flags
):
return
' '
.
join
(
flags
)
return
' '
.
join
(
flags
)
# if numpy was linked with library that are not installed, we
# If numpy was linked with library that are not installed or
# the dev version of the package is not currently available, we
# can't reuse them.
# can't reuse them.
if
any
(
os
.
path
.
exists
(
dir
)
for
dir
in
blas_info
[
'library_dirs'
]):
if
any
(
os
.
path
.
exists
(
dir
)
for
dir
in
blas_info
[
'library_dirs'
]):
ret
=
(
ret
=
(
...
@@ -316,10 +323,6 @@ SOMEPATH/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/system_in
...
@@ -316,10 +323,6 @@ SOMEPATH/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/system_in
[
'-L
%
s'
%
l
for
l
in
blas_info
[
'library_dirs'
]]
+
[
'-L
%
s'
%
l
for
l
in
blas_info
[
'library_dirs'
]]
+
[
'-l
%
s'
%
l
for
l
in
blas_info
[
'libraries'
]]
+
[
'-l
%
s'
%
l
for
l
in
blas_info
[
'libraries'
]]
+
[])
[])
# ['-I%s' % l for l in blas_info['include_dirs']])
# if numpy was linked with library that are not installed or
# the dev version of the package is not currently available, we
# can't reuse them.
if
GCC_compiler
.
try_flags
(
ret
):
if
GCC_compiler
.
try_flags
(
ret
):
return
' '
.
join
(
ret
)
return
' '
.
join
(
ret
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论