Document dispatch trace build flag (#145517)

Ok, the build flag seems to have been broken for a while since the function it calls doesn't exist anymore.
Repurposed it to enable dispatcher printing (which requires a full (and slow) debug build otherwise).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/145517
Approved by: https://github.com/bdhirsh
This commit is contained in:
albanD
2025-01-24 03:19:36 +00:00
committed by PyTorch MergeBot
parent a40ead1fd6
commit 29ddf9a63e
4 changed files with 9 additions and 31 deletions

View File

@ -22,6 +22,11 @@
# also applies to C++ files (unless CXXFLAGS is set), in contrast to the
# default behavior of autogoo and cmake build systems.)
#
# A specific flag that can be used is
# -DHAS_TORCH_SHOW_DISPATCH_TRACE
# build with dispatch trace that can be enabled with
# TORCH_SHOW_DISPATCH_TRACE=1 at runtime.
#
# CC
# the C/C++ compiler to use
#