Skip to content

Commit 71a2d11

Browse files
briancoutinhofacebook-github-bot
authored andcommitted
Update documentation for pytorch profiler (#52)
Summary: Pull Request resolved: #52 A quick update to doc for building pytorch. I had to change my original PR in pytorch to fix Linux CLA issues. Updating it here. pytorch/pytorch#88020 Reviewed By: haowangludx Differential Revision: D41050986 fbshipit-source-id: bcfd0bb5cc465e9447105cac285dcebb920d5c58
1 parent 728af70 commit 71a2d11

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

docs/pytorch_profiler.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The following instructions walk through:
1818
> Note that these instructions will likely change. We need recent commits in PyTorch to enable this feature. As a new PyTorch release takes place users will not need to build PyTorch from source.
1919
2020
Currently, we need to build PyTorch from source to obtain the latest changes that make it compatible with dynolog.
21-
Please follow instructions in PyTorch Readme on obtaining the setup. Ensure that your checkout has the [PR#87226](https://github.com/pytorch/pytorch/pull/87226/) (use `git log` to check).
21+
Please follow the instructions in [PyTorch README](https://github.com/pytorch/pytorch/blob/master/README.md) on obtaining the setup. Ensure that your checkout has the [PR#88020](https://github.com/pytorch/pytorch/pull/88020/) (use `git log` to check).
2222

2323
Before building, also pull in latest changes from Kineto dependency using:
2424
```bash
@@ -28,6 +28,13 @@ Before building, also pull in latest changes from Kineto dependency using:
2828
```
2929
The minimum version needed is one containing [PR#653](https://github.com/pytorch/kineto/pull/653/), commit a36e47e6d080abd62ca26dd2a007c8f4cd0bd600
3030

31+
Lastly, disable the `USE_LITE_INTERPRETER_PROFILER` setting. One way to do this is change the option in `pytorch/CMakeLists.txt`.
32+
```
33+
if(USE_LITE_INTERPRETER_PROFILER)
34+
- string(APPEND CMAKE_CXX_FLAGS " -DEDGE_PROFILER_USE_KINETO")
35+
+ # string(APPEND CMAKE_CXX_FLAGS " -DEDGE_PROFILER_USE_KINETO")
36+
endif()
37+
```
3138
You are all set to build and install PyTorch.
3239
```bash
3340
python setup.py install

0 commit comments

Comments
 (0)