File tree Expand file tree Collapse file tree 1 file changed +23
-11
lines changed Expand file tree Collapse file tree 1 file changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -189,21 +189,33 @@ former and defaults to `ON` if not changed:
189
189
190
190
#### Initiate Build
191
191
192
- After either cmake run (in-tree/out-of-tree), use one of the following commands to build the project:
192
+ 1. [Configure the build](#configure-for-building) if you haven' t already done so.
193
+ 1. ** If you want to...**
194
+ - ** ...build _everything_** (including LLVM if configured as " in-tree" ), run:
193
195
194
- ```shell
195
- # Build just torch-mlir (not all of LLVM)
196
- cmake --build build --target tools/torch-mlir/all
196
+ ` ` ` shell
197
+ cmake --build build
198
+ ` ` `
197
199
198
- # Run unit tests.
199
- cmake --build build --target check-torch-mlir
200
+ - ** ...build _just_ torch-mlir** (not all of LLVM), run:
200
201
201
- # Run Python regression tests.
202
- cmake --build build --target check-torch-mlir-python
202
+ ` ` ` shell
203
+ cmake --build build --target tools/torch-mlir/all
204
+ ` ` `
203
205
204
- # Build everything (including LLVM if in-tree)
205
- cmake --build build
206
- ```
206
+ - ** ...run unit tests** , run:
207
+
208
+ ` ` ` shell
209
+ cmake --build build --target check-torch-mlir
210
+ ` ` `
211
+
212
+ - ** ...run Python regression tests** , run:
213
+
214
+ ` ` ` shell
215
+ cmake --build build --target check-torch-mlir-python
216
+ ` ` `
217
+
218
+ TIP: add multiple target options to stack build phases
207
219
208
220
# ## Setup Python Environment to export the built Python packages
209
221
You can’t perform that action at this time.
0 commit comments