提交 ef304dbf authored 作者: Frederic Bastien's avatar Frederic Bastien

Doc how to use gdb and python

上级 4507dd16
...@@ -983,6 +983,23 @@ macros defined by ``COp``. Finally, the function ...@@ -983,6 +983,23 @@ macros defined by ``COp``. Finally, the function
macros and also because it calls ``vector_elemwise_mult()`` which is macros and also because it calls ``vector_elemwise_mult()`` which is
an apply-specific function. an apply-specific function.
Using GDB to debug Op's C code
==============================
When debugging C code, it can be useful to use GDB for code compiled
by Theano.
For this, you must enable this Theano: `cmodule.remove_gxx_opt=True`.
For the GPU, you must add in this second flag `nvcc.flags=-g` (it slow
down computation on the GPU, but it is enabled by default on the CPU).
Then you must start Python inside GDB and in it start your Python
process (e.g. theano-nose):
$gdb python
(gdb)r bin/theano-nose theano/
Final Note Final Note
========== ==========
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论