[MPS] Add mps profiler env vars to docs (#129552)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/129552
Approved by: https://github.com/malfet
ghstack dependencies: #129451
This commit is contained in:
Li-Huai (Allan) Lin
2024-07-02 12:52:26 -07:00
committed by PyTorch MergeBot
parent 07b06f0f0a
commit 42f3d7e948

View File

@ -12,6 +12,10 @@ MPS Environment Variables
- Description
* - ``PYTORCH_DEBUG_MPS_ALLOCATOR``
- If set to ``1``, set allocator logging level to verbose.
* - ``PYTORCH_MPS_LOG_PROFILE_INFO``
- Set log options bitmask to ``MPSProfiler``. See ``LogOptions`` enum in `aten/src/ATen/mps/MPSProfiler.h` for available options.
* - ``PYTORCH_MPS_TRACE_SIGNPOSTS``
- Set profile and signpost bitmasks to ``MPSProfiler``. See ``ProfileOptions`` and ``SignpostTypes`` enums in `aten/src/ATen/mps/MPSProfiler.h` for available options.
* - ``PYTORCH_MPS_HIGH_WATERMARK_RATIO``
- High watermark ratio for MPS allocator. By default, it is set to 1.7.
* - ``PYTORCH_MPS_LOW_WATERMARK_RATIO``