Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ repos:
- id: debug-statements

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to keep this the same as upstream to avoid formatting differences when we want to PR code back to them: https://github.com/triton-lang/triton/blob/main/.pre-commit-config.yaml#L21

rev: v0.15.0
hooks:
- id: ruff
- id: ruff-check
files: '(^python|^third_party/proton|^third_party/amd|^third_party/nvidia|^test)/.*'
args: ["--fix", "--exit-non-zero-on-fix"]
exclude: |
Expand Down
3 changes: 1 addition & 2 deletions backend/compiler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from importlib.metadata import metadata
import tempfile
import functools
import hashlib
Expand Down Expand Up @@ -110,7 +109,7 @@ def make_ttir(mod, metadata, options):
@staticmethod
def make_ttgir(mod, metadata, options):
pm = ir.pass_manager(mod.context)
dump_enabled = pm.enable_debug()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This came from upstream but it's true, we are not using it right now. I think I left it as a placeholder that meant we might want to support dumping debug info via different passes if debugging is available (I might even have that in a branch somewhere).

pm.enable_debug()
threads_per_warp = 1
metadata["warp_size"] = threads_per_warp
num_ctas = 1
Expand Down
2 changes: 0 additions & 2 deletions backend/driver.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import functools
import triton
import os
import subprocess
import tempfile
import time
import platform
import importlib
from pathlib import Path

from triton.runtime.build import compile_module_from_src
from triton.backends.driver import DriverBase
Expand Down