TORCH_COMPILE_DEBUG=1 does not consistently generate debug logs #152374
Labels
module: dynamo
module: logging
Features which make it easier to tell what PyTorch is doing under the hood
oncall: pt2
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
๐ Describe the bug
I am trying to collect log files generated during
torch.compile
execution for debugging purposes, but the files do not always appear.I created the following simple test script:
Observed behavior:
After a reboot, the debug log files are correctly generated under
torch_compile_debug/<log_dir>/torchinductor/model__0_forward_1.0/
. However, no new log files are generated when running the script again without rebooting. This might be related to a cache issue.Expected behavior:
TORCH_COMPILE_DEBUG=1
would consistently generate debug logs, without requiring a system reboot.Error logs
No debug files generated.
Versions
env.txt
cc @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @amjames
The text was updated successfully, but these errors were encountered: