Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
0de7e570
提交
0de7e570
authored
2月 21, 2012
作者:
Frederic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move where we use the nvcc.fastmath flags from the CudaNdarrayType to the NVCC_compiler.
It seam more logical to associate it with the compiler then the Type. This also make cuda_ndarray.cu compiled with it.
上级
d912ebb9
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
4 行增加
和
4 行删除
+4
-4
NEWS.txt
NEWS.txt
+1
-0
nvcc_compiler.py
theano/sandbox/cuda/nvcc_compiler.py
+2
-0
type.py
theano/sandbox/cuda/type.py
+1
-4
没有找到文件。
NEWS.txt
浏览文件 @
0de7e570
...
@@ -15,6 +15,7 @@ Since 0.5rc2
...
@@ -15,6 +15,7 @@ Since 0.5rc2
This mean that now we recompile all modules for each value of "nvcc.flags".
This mean that now we recompile all modules for each value of "nvcc.flags".
This do use change the default, but if you used this flags, it was ignored
This do use change the default, but if you used this flags, it was ignored
for module already compiled.
for module already compiled.
* The Theano flag "nvcc.fastmath" is now also used for the cuda_ndarray.cu file.
=============
=============
Release Notes
Release Notes
...
...
theano/sandbox/cuda/nvcc_compiler.py
浏览文件 @
0de7e570
...
@@ -81,6 +81,8 @@ class NVCC_compiler():
...
@@ -81,6 +81,8 @@ class NVCC_compiler():
They will also be included in the "hard" part of the key module.
They will also be included in the "hard" part of the key module.
"""
"""
flags
=
[
flag
for
flag
in
config
.
nvcc
.
flags
.
split
(
' '
)
if
flag
]
flags
=
[
flag
for
flag
in
config
.
nvcc
.
flags
.
split
(
' '
)
if
flag
]
if
config
.
nvcc
.
fastmath
:
flags
.
append
(
'-use_fast_math'
)
return
flags
return
flags
# cuda_ndarray_cuh_hash = hash_from_file(
# cuda_ndarray_cuh_hash = hash_from_file(
# os.path.join(os.path.split(__file__)[0], 'cuda_ndarray.cuh'))
# os.path.join(os.path.split(__file__)[0], 'cuda_ndarray.cuh'))
...
...
theano/sandbox/cuda/type.py
浏览文件 @
0de7e570
...
@@ -373,10 +373,7 @@ class CudaNdarrayType(Type):
...
@@ -373,10 +373,7 @@ class CudaNdarrayType(Type):
return
NVCC_compiler
return
NVCC_compiler
def
c_compile_args
(
self
):
def
c_compile_args
(
self
):
ret
=
[]
return
[]
if
config
.
nvcc
.
fastmath
:
ret
.
append
(
'-use_fast_math'
)
return
ret
# Register CudaNdarrayType to the OutputGuard list of known types
# Register CudaNdarrayType to the OutputGuard list of known types
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论