Commit d81c736
Clean build environment before each bisect step (PR-55)
Summary:
Add build environment cleanup before building Triton to ensure a clean
state for each bisect step. This prevents stale artifacts and package
conflicts from affecting bisect results.
Changes:
1. Clean build directories
- Remove $TRITON_DIR/build (compiled artifacts)
- Remove $TRITON_DIR/python/triton.egg-info (package metadata)
2. Uninstall existing triton packages
- Remove 'triton' and 'pytorch-triton' packages before build
- Prevents conflicts with PyTorch built-in triton
- Supports both pip and uv (USE_UV=1)
This ensures each bisect step starts with a clean build environment,
preventing issues where:
- Incremental builds fail due to stale artifacts
- Old triton versions interfere with newly built versions
- PyTorch's built-in triton causes version conflicts
Reviewed By: wychi
Differential Revision: D91072543
fbshipit-source-id: b5ba62a316a6a223f7a75aba69c01080d832e2261 parent dffa180 commit d81c736
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
185 | 200 | | |
186 | 201 | | |
187 | 202 | | |
| |||
0 commit comments