-
Notifications
You must be signed in to change notification settings - Fork 4
Description
我看楼主blog里,请问下,类似这样的调用栈是怎么打断点得到的呢?
[P020] > torch/cuda/ http://graphs.py #L55:capture_begin [New]
[P019] > torch/cuda/ http://graphs.py #L170:enter [New]
[P018] > torch/_inductor/ http://cudagraph_trees.py #L1745:init [New]
[P017] > torch/_inductor/ http://cudagraph_trees.py #L269:get_tree_manager [New]
[P016] > torch/_inductor/ http://cudagraph_trees.py #L382:cudagraphify [New]
[P015] > torch/_inductor/ http://cudagraph_trees.py #L356:deferred_cudagraphify [New]
[P014] > torch/_inductor/ http://compile_fx.py #L988:run [New]
[P013] > torch/_inductor/ http://codecache.py #L1129:call [New]
[P012] > torch/_functorch/_aot_autograd/ http://runtime_wrappers.py #L437:wrapper [New]
[P011] > torch/_functorch/_aot_autograd/ http://utils.py #L110:call_func_at_runtime_with_args
[P010] > torch/_functorch/_aot_autograd/ http://runtime_wrappers.py #L1431:forward [New]
[P009] > torch/autograd/ http://function.py #L558:apply
我得到的都是这样的类似, 没有你的清晰啊,还有断点到 libtorch_python.so 后怎么知道源码在哪呢:
#0 0x00007ffff5710b30 in at::Tensor::mul(at::Tensor const&) const@plt ()
from /pytorch/torch/lib/ http://libtorch_python.so
#1 0x00007ffff5930834 in operator() (
__closure=0x7fffffffc62f, self=..., other=...)
at /pytorch/torch/csrc/autograd/generated/python_variable_methods.cpp:11448
#2 0x00007ffff5930aec in torch::autograd::THPVariable_mul (se