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
7 changes: 7 additions & 0 deletions helion/exc.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,13 @@ class IncompatibleInterpretModes(BaseError):
message = "TRITON_INTERPRET=1 and HELION_INTERPRET=1 cannot be used together. Please use only one of these debug modes at a time."


class FusionAutotuneRequiresTorchCompileFusion(BaseError):
location_suffix = ""
message = (
"autotune_with_torch_compile_fusion=True requires torch_compile_fusion=True."
)


class MissingEnableTile(BaseError):
message = (
"HELION_BACKEND=tileir requires the Triton TileIR driver to be active. "
Expand Down
3 changes: 3 additions & 0 deletions helion/runtime/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,9 @@ def __init__(self, **settings: object) -> None:
if self.backend == "tileir" and os.environ.get("ENABLE_TILE", "0") != "1":
raise exc.MissingEnableTile

if self.autotune_with_torch_compile_fusion and not self.torch_compile_fusion:
raise exc.FusionAutotuneRequiresTorchCompileFusion

self._check_ref_eager_mode_before_print_output_code()

def to_dict(self) -> dict[str, object]:
Expand Down
Loading