Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
b0b78690
提交
b0b78690
authored
11月 23, 2010
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
white space fix.
上级
bc396826
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
14 行增加
和
14 行删除
+14
-14
check_blas.py
theano/misc/check_blas.py
+14
-14
没有找到文件。
theano/misc/check_blas.py
浏览文件 @
b0b78690
...
@@ -32,13 +32,13 @@ def execute(execute=True, verbose=True):
...
@@ -32,13 +32,13 @@ def execute(execute=True, verbose=True):
print
' blas.ldflags='
,
theano
.
config
.
blas
.
ldflags
print
' blas.ldflags='
,
theano
.
config
.
blas
.
ldflags
print
' compiledir='
,
theano
.
config
.
compiledir
print
' compiledir='
,
theano
.
config
.
compiledir
print
' floatX='
,
theano
.
config
.
floatX
print
' floatX='
,
theano
.
config
.
floatX
print
print
print
'Numpy config:(used when the theano flags "blas.ldflags" is empty)'
print
'Numpy config:(used when the theano flags "blas.ldflags" is empty)'
numpy
.
show_config
();
numpy
.
show_config
();
print
'Numpy dot module:'
,
numpy
.
dot
.
__module__
;
print
'Numpy dot module:'
,
numpy
.
dot
.
__module__
;
print
'Numpy file location that was loaded:'
,
numpy
.
__file__
;
print
'Numpy file location that was loaded:'
,
numpy
.
__file__
;
print
'Numpy version:'
,
numpy
.
__version__
print
'Numpy version:'
,
numpy
.
__version__
print
print
if
any
(
[
x
.
op
.
__class__
.
__name__
==
'Gemm'
for
x
in
f
.
maker
.
env
.
toposort
()]):
if
any
(
[
x
.
op
.
__class__
.
__name__
==
'Gemm'
for
x
in
f
.
maker
.
env
.
toposort
()]):
print
'Used the cpu'
print
'Used the cpu'
elif
any
(
[
x
.
op
.
__class__
.
__name__
==
'GpuGemm'
for
x
in
f
.
maker
.
env
.
toposort
()]):
elif
any
(
[
x
.
op
.
__class__
.
__name__
==
'GpuGemm'
for
x
in
f
.
maker
.
env
.
toposort
()]):
...
@@ -66,7 +66,7 @@ def jobman_job(state, channel):
...
@@ -66,7 +66,7 @@ def jobman_job(state, channel):
def
test
():
def
test
():
execute
()
execute
()
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
verbose
=
True
verbose
=
True
...
@@ -81,8 +81,8 @@ if __name__ == "__main__":
...
@@ -81,8 +81,8 @@ if __name__ == "__main__":
if
verbose
:
if
verbose
:
print
"""
print
"""
Some result that you can compare again. They where 10 executions of gemm in float64 with matrix of shape 2000x2000 on FC9.
Some result that you can compare again. They where 10 executions of gemm in float64 with matrix of shape 2000x2000 on FC9.
Cpu tested: Xeon E5345, Xeon E5430, Xeon E5450, Core 2 E8500, Core i7 930(hyper-threads enabled)
Cpu tested: Xeon E5345, Xeon E5430, Xeon E5450, Core 2 E8500, Core i7 930(hyper-threads enabled)
Lib tested:
Lib tested:
...
@@ -90,14 +90,14 @@ if __name__ == "__main__":
...
@@ -90,14 +90,14 @@ if __name__ == "__main__":
* manually compiled numpy and ATLAS with 2 threads
* manually compiled numpy and ATLAS with 2 threads
* goto with 1, 2, 4 and 8 threads.
* goto with 1, 2, 4 and 8 threads.
Xeon Xeno Xeon Core2 i7
Xeon Xeno Xeon Core2 i7
lib/nb threads E5345 E5430 E5450 E8500 930
lib/nb threads E5345 E5430 E5450 E8500 930
numpy_FC9_atlas/1 39.2s 35.0s 30.7s 29.6s 21.5s
numpy_FC9_atlas/1 39.2s 35.0s 30.7s 29.6s 21.5s
goto/1 18.7s 16.1s 14.2s 13.7s 16.1s
goto/1 18.7s 16.1s 14.2s 13.7s 16.1s
numpy_MAN_atlas/2 12.0s 11.6s 10.2s 9.2s 9.0s
numpy_MAN_atlas/2 12.0s 11.6s 10.2s 9.2s 9.0s
goto/2 9.5s 8.1s 7.1s 7.3s 8.1s
goto/2 9.5s 8.1s 7.1s 7.3s 8.1s
goto/4 4.9s 4.4s 3.7s - 4.1s
goto/4 4.9s 4.4s 3.7s - 4.1s
goto/8 2.7s 2.4s 2.0s - 4.1s
goto/8 2.7s 2.4s 2.0s - 4.1s
Test time in float32 with cuda 3.0.14
Test time in float32 with cuda 3.0.14
(cuda version 3.2RC and up are supposed to have faster gemm on the GTX4?? card)
(cuda version 3.2RC and up are supposed to have faster gemm on the GTX4?? card)
...
@@ -109,9 +109,9 @@ if __name__ == "__main__":
...
@@ -109,9 +109,9 @@ if __name__ == "__main__":
GTX285/3.0 0.40s
GTX285/3.0 0.40s
GT220/3.2RC 5.15s
GT220/3.2RC 5.15s
8500GT/3.0 10.68s
8500GT/3.0 10.68s
"""
"""
print
print
print
"We timed"
,
iters
,
"executions of gemm with matrix of shapes"
,
shapes
print
"We timed"
,
iters
,
"executions of gemm with matrix of shapes"
,
shapes
else
:
else
:
print
t
print
t
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论