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
description: Report triton failing to compile a kernel, or giving incorrect results
3
+
labels: ["bug"]
4
+
5
+
body:
6
+
- type: markdown
7
+
attributes:
8
+
value: |
9
+
#### Disclaimer
10
+
The core triton team is small and has very limited capacity. We may not have time to look into your report.
11
+
For the best results, please:
12
+
- Avoid submitting duplicates. Search through [the existing and past issues](https://github.com/triton-lang/triton/issues?q=is%3Aissue+sort%3Acreated-desc+) first to see if it's been reported previously.
13
+
- Check if the issue persists with a build from the latest source.
14
+
- Provide all relevant information in the initial report, to prevent unnecessary back and forth discussion.
15
+
- If you can, try to diagnose and/or fix the issue yourself. We welcome high quality contributions.
16
+
- type: textarea
17
+
attributes:
18
+
label: Describe the bug
19
+
description: |
20
+
Please provide a clear and concise description of what the bug is.
21
+
22
+
If relevant, add a [minimal complete example](https://stackoverflow.com/help/minimal-reproducible-example) that reproduces the bug. It is very important for the snippet to be as simple as possible, so please take time to trim down any irrelevant code to help us debug efficiently. We are going to copy-paste your code and we expect to get the same result as you did, so include both the kernel and launching code as well as any relevant imports.
23
+
24
+
If the code is too long (hopefully, it isn't), feel free to put it in a public gist and link it in the issue: https://gist.github.com.
25
+
26
+
Please also paste or describe the results you observe instead of the expected results. If you observe an error, please paste the error message including the **full** traceback of the exception. It may be relevant to wrap error messages in ```` ```triple quotes blocks``` ````.
27
+
placeholder: |
28
+
A clear and concise description of what the bug is.
29
+
30
+
```python
31
+
# Sample code to reproduce the problem
32
+
```
33
+
34
+
```
35
+
The error message you got, with the full traceback.
36
+
```
37
+
validations:
38
+
required: true
39
+
- type: textarea
40
+
attributes:
41
+
label: Environment details
42
+
description: |
43
+
Please include any relevant context about how you're running the reproducer e.g. which version of triton, and what GPU you are using.
description: Report cases where triton is generating sub-optimal (but functionally correct) PTX/LLVM IR
3
+
labels: ["performance"]
4
+
5
+
body:
6
+
- type: markdown
7
+
attributes:
8
+
value: |
9
+
#### Disclaimer
10
+
The core triton team is small and has very limited capacity. We may not have time to look into your report.
11
+
For the best results, please:
12
+
- Avoid submitting duplicates. Search through [the existing and past issues](https://github.com/triton-lang/triton/issues?q=is%3Aissue+sort%3Acreated-desc+) first to see if it's been reported previously.
13
+
- Check if the issue persists with a build from the latest source.
14
+
- Provide all relevant information in the initial report, to prevent unnecessary back and forth discussion.
15
+
- If you can, try to diagnose and/or fix the issue yourself. We welcome high quality contributions.
16
+
- type: textarea
17
+
attributes:
18
+
label: Describe the issue
19
+
description: |
20
+
Please provide a clear and concise description of the issue.
21
+
22
+
Include a [minimal complete example](https://stackoverflow.com/help/minimal-reproducible-example) that reproduces the issue. It is very important for the snippet to be as simple as possible, so please take time to trim down any irrelevant code to help us debug efficiently. We are going to copy-paste your code and we expect to get the same result as you did.
23
+
24
+
A reproducer could be a python program that runs a triton kernel and prints out the relevant suboptimal IR, or an IR file with an accompanying triton-opt command.
25
+
26
+
If the code is too long (hopefully, it isn't), feel free to put it in a public gist and link it in the issue: https://gist.github.com.
27
+
placeholder: |
28
+
A clear and concise description of the issue.
29
+
30
+
```python
31
+
# Sample code to reproduce the problem
32
+
```
33
+
validations:
34
+
required: true
35
+
- type: textarea
36
+
attributes:
37
+
label: Environment details
38
+
description: |
39
+
Please include any relevant context about how you're running the reproducer e.g. which version of triton, and what GPU you are using.
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,6 +176,9 @@ For detailed instructions on how to debug Triton's frontend, please refer to thi
176
176
kernels. Use `MLIR_ENABLE_DUMP=kernelName` to dump for a specific kernel only.
177
177
- Triton cache can interfere with the dump. In cases where `MLIR_ENABLE_DUMP=1` does not work, try cleaning your triton cache: `rm -r ~/.triton/cache/*`
178
178
-`LLVM_IR_ENABLE_DUMP=1` dumps the IR before every pass run over the LLVM IR.
179
+
-`TRITON_REPRODUCER_PATH=<reproducer_path>` will generate an MLIR reproducer file
180
+
at `<reproducer_path>` before each MLIR compiler stage. If any of the stages fail,
181
+
`<reproducer_path>` will be a local MLIR reproducer captured right before the failing pass.
179
182
-`TRITON_INTERPRET=1` uses the Triton interpreter instead of running on the
180
183
GPU. You can insert Python breakpoints in your kernel code!
181
184
-`TRITON_ENABLE_LLVM_DEBUG=1` passes `-debug` to LLVM, printing a lot of
0 commit comments