Skip to content

Commit 11d0853

Browse files
authored
[docs] Clarify when to use optimization options (#4114)
1 parent 8b6ddd3 commit 11d0853

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/development.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ Two setups are possible to build: in-tree and out-of-tree. The in-tree setup is
102102
The following commands generate configuration files to build the project *in-tree*, that is, using llvm/llvm-project as the main build. This will build LLVM as well as torch-mlir and its subprojects.
103103

104104
###### ...Base + Optimization Options
105-
This will build `libtorch` / `PyTorch` wheels from source and requires [the enablement mentioned earlier](#optional-enable-quicker-builds). If you encounter issues when you run this, try the [simplified build command](#base-options) instead.
105+
106+
If you do anticipate needing to frequently rebuild LLVM "in-tree", run:
106107

107108
```shell
108109
cmake -GNinja -Bbuild \
@@ -136,9 +137,12 @@ cmake -GNinja -Bbuild \
136137
-DLIBTORCH_VARIANT=shared
137138
```
138139

140+
- This will build `libtorch` / `PyTorch` wheels from source and requires [the enablement mentioned earlier](#optional-enable-quicker-builds).
141+
- If you encounter issues when you run this, try the [simplified build command](#base-options) instead.
142+
139143
###### ...Base Options
140144

141-
If you're running into issues with the above build command, consider using the following:
145+
If you don't anticipate needing to frequently rebuild LLVM "in-tree", run:
142146

143147
```shell
144148
cmake -GNinja -Bbuild \

0 commit comments

Comments
 (0)