Skip to content

Commit af56546

Browse files
committed
Address code review comments
Tags:
1 parent 9b2ee3c commit af56546

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

prototype_source/flight_recorder_tutorial.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,18 @@ Flight Recorder consists of two core parts:
4646

4747
Enabling Flight Recorder
4848
------------------------
49-
There are two required environment variables to get the initial version of Flight Recorder working.
49+
There are three required environment variables to get the initial version of Flight Recorder working.
5050

5151
- ``TORCH_NCCL_TRACE_BUFFER_SIZE = (0, N)``: Setting ``N`` to a positive number enables collection.
5252
``N`` represents the number of entries that will be kept internally in a circular buffer.
53-
We recommended to set this value at *2000*.
53+
We recommended to set this value at *2000*. The default value is ``2000``.
5454
- ``TORCH_NCCL_DUMP_ON_TIMEOUT = (true, false)``: Setting this to ``true`` will write out diagnostic files to disk on job timeout.
55-
If enabled, there will be one file per rank output in the job's running directory.
55+
If enabled, there will be one file per rank output in the job's running directory. The default value is ``false``.
56+
- ``TORCH_NCCL_DEBUG_INFO_TEMP_FILE``: Setting the path where the flight recorder will be dumped with file prefix. One file per
57+
rank. The default value is ``/tmp/nccl_trace_rank_``.
5658

5759
**Optional settings:**
5860

59-
- ``TORCH_NCCL_DEBUG_INFO_TEMP_FILE``: Setting the path where the flight recorder will be dumped with file prefix. One file per
60-
rank. The default value is ``/tmp/nccl_trace_rank_``.
6161
- ``TORCH_NCCL_TRACE_CPP_STACK = (true, false)``: Setting this to true enables C++ stack traces to be captured in Flight Recorder.
6262
C++ stack traces can be useful in providing the exact code path from a PyTorch Python call down to the primitive
6363
C++ implementation. Also see ``TORCH_SYMBOLIZE_MODE`` in additional settings.
@@ -74,7 +74,8 @@ Additional Settings
7474
``fast`` is a new experimental mode that is shown to be much faster than the traditional ``addr2line``.
7575
Use this setting in conjunction with ``TORCH_NCCL_TRACE_CPP_STACK`` to collect C++ traces in the Flight Recorder data.
7676
- If you prefer not to have the flight recorder data dumped into the local disk but rather onto your own storage, you can define your own writer class.
77-
This class should inherit from class ``::c10d::DebugInfoWriter`` `(code) <https://github.com/pytorch/pytorch/blob/release/2.5/torch/csrc/distributed/c10d/NCCLUtils.hpp#L237>`__ and then register the new writer using ``::c10d::DebugInfoWriter::registerWriter``
77+
This class should inherit from class ``::c10d::DebugInfoWriter`` `(code) <https://github.com/pytorch/pytorch/blob/release/2.5/torch/csrc/distributed/c10d/NCCLUtils.hpp#L237>`__
78+
and then register the new writer using ``::c10d::DebugInfoWriter::registerWriter`` `(code) <https://github.com/pytorch/pytorch/blob/release/2.5/torch/csrc/distributed/c10d/NCCLUtils.hpp#L242>`__
7879
before we initiate PyTorch distributed.
7980

8081
Retrieving Flight Recorder Data via an API

0 commit comments

Comments
 (0)