You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove triton submodule and add triton-hash.txt to track the triton commit ID (#344)
This PR removes the Triton submodule and replaces it with a hash file
(`triton-hash.txt`) to track the Triton version. This change provides
greater flexibility in the Triton versions that triton-shared can be
built with. All relevant files have been updated accordingly.
After this PR is landed, the installation steps will be
```sh
export TRITON_PLUGIN_DIRS=$(pwd)/triton_shared
git clone https://github.com/microsoft/triton-shared.git triton_shared
git clone https://github.com/triton-lang/triton.git
cd triton && git checkout $(cat ../triton_shared/triton-hash.txt)
...
// follow the same steps as before to build Triton
```
**Note: because LLVM takes a long time to build, the initial run of `build.sh` may exceed 20 minutes. On later runs, the build script reuses the Python virtual environment and LLVM binary to speed up the build of `triton`, `triton-shared`, and `triton-san`.**
41
+
41
42
After installation, `build.sh` generates the following folders alongside the `triton-shared` repository.
42
43
```
43
-
llvm triton-san triton-shared venv
44
+
llvm triton triton-san triton-shared venv
44
45
```
45
46
-`llvm`: the custom LLVM source and binary,
46
-
-`venv`: Python environment with TritonSan-enabled Triton package installed,
47
+
-`triton` the triton source and binary,
47
48
-`triton-san`: TritonSan driver script and associated files.
49
+
-`venv`: Python environment with TritonSan-enabled Triton package installed,
48
50
49
51
## Usage
50
52
To use TritonSan, run the TritonSan driver script (`triton-san/triton-san`) with the target Triton program and its corresponding inputs. We also provide two sample Triton programs containing known bugs, which `build.sh` installs into the `triton-san/examples` directory.
0 commit comments