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
Fix TritonSan build error with triton version e44bd1c (#359)
This PR resolves the TritonSan build error. The build script was broken
due to several issues:
- Removal of the Triton submodule: We now use triton-hash.txt to record
the Triton version. The previous logic for locating Triton submodule was
invalidated by this change.
- LLVM-related issue: In the corresponding LLVM version, there is a
known bug that causes [a compilation error when building
OpenMP](llvm/llvm-project@62ff9ac).
The build script now cherry-picks this patch to address the problem.
This PR fixes all these issues. The build script will now automatically
check out Triton and place it alongside triton-shared, LLVM, and the
Python virtual environment. There are no changes to the usage of the
build script or the TritonSan driver script.
Copy file name to clipboardExpand all lines: triton-san/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,11 +66,15 @@ Usage: triton-san <sanitizer type> <original command used to launch the triton p
66
66
Example: triton-san asan python ./my_triton_program.py
67
67
```
68
68
69
-
**Note: before running TritonSan, please add the following import to the Triton program to specify the use of the CPU backend, which ensures all Triton kernels run on the CPU. The sanitizers require CPU backend in order to work.**
69
+
**Note: before running TritonSan, please add the following import to the Triton program to specify the use of the CPU backend, which ensures all Triton kernels run on the CPU. The sanitizers require CPU backend in order to work. In addition, all desired GPU tensors in the Triton program need to be set to CPU**
70
70
71
71
```python
72
72
from triton.backends.triton_shared.driver import CPUDriver
0 commit comments