Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
2c845d9a
提交
2c845d9a
authored
6月 29, 2012
作者:
Frederic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add the cmodule.remove_gxx_opt flags to help debug with gdb.
上级
ad01f5b1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
16 行增加
和
3 行删除
+16
-3
config.txt
doc/library/config.txt
+8
-0
cmodule.py
theano/gof/cmodule.py
+8
-3
没有找到文件。
doc/library/config.txt
浏览文件 @
2c845d9a
...
@@ -613,3 +613,11 @@ import theano and print the config variable, as in:
...
@@ -613,3 +613,11 @@ import theano and print the config variable, as in:
If set to True, breaks certain MacOS installations with the infamous
If set to True, breaks certain MacOS installations with the infamous
Bus Error.
Bus Error.
.. attribute:: config.cmodule.remove_gxx_opt
Bool value, default: False
If True, will remove -O* parameter passed to g++.
This is useful to debug in gdb module compiled by Theano.
The parameter -g is passed by default to g++.
theano/gof/cmodule.py
浏览文件 @
2c845d9a
...
@@ -42,6 +42,12 @@ AddConfigVar('cmodule.warn_no_version',
...
@@ -42,6 +42,12 @@ AddConfigVar('cmodule.warn_no_version',
BoolParam
(
False
),
BoolParam
(
False
),
in_c_key
=
False
)
in_c_key
=
False
)
AddConfigVar
(
'cmodule.remove_gxx_opt'
,
"If True, will remove -O* parameter passed to g++."
"This is useful to debug in gdb module compiled by Theano."
"The parameter -g is passed by default to g++"
,
BoolParam
(
False
))
def
local_bitwidth
():
def
local_bitwidth
():
"""
"""
...
@@ -1482,8 +1488,6 @@ class GCC_compiler(object):
...
@@ -1482,8 +1488,6 @@ class GCC_compiler(object):
# We also add "-m64", in case the installed gcc is 32-bit
# We also add "-m64", in case the installed gcc is 32-bit
preargs
.
append
(
'-m64'
)
preargs
.
append
(
'-m64'
)
no_opt
=
False
include_dirs
=
include_dirs
+
std_include_dirs
()
include_dirs
=
include_dirs
+
std_include_dirs
()
libs
=
std_libs
()
+
libs
libs
=
std_libs
()
+
libs
lib_dirs
=
std_lib_dirs
()
+
lib_dirs
lib_dirs
=
std_lib_dirs
()
+
lib_dirs
...
@@ -1530,7 +1534,8 @@ class GCC_compiler(object):
...
@@ -1530,7 +1534,8 @@ class GCC_compiler(object):
_logger
.
debug
(
'Generating shared lib
%
s'
,
lib_filename
)
_logger
.
debug
(
'Generating shared lib
%
s'
,
lib_filename
)
cmd
=
[
'g++'
,
get_gcc_shared_library_arg
(),
'-g'
]
cmd
=
[
'g++'
,
get_gcc_shared_library_arg
(),
'-g'
]
if
no_opt
:
if
config
.
cmodule
.
remove_gxx_opt
:
cmd
.
extend
(
p
for
p
in
preargs
if
not
p
.
startswith
(
'-O'
))
cmd
.
extend
(
p
for
p
in
preargs
if
not
p
.
startswith
(
'-O'
))
else
:
else
:
cmd
.
extend
(
preargs
)
cmd
.
extend
(
preargs
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论