Skip to content

disable aoti format in windows #3632

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jun 28, 2025
Merged
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: 4 additions & 0 deletions py/torch_tensorrt/_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,10 @@ def save(
raise ValueError(
f"Provided output_format {output_format} is not supported. Supported options are exported_program | torchscript"
)
if output_format == "aot_inductor" and platform.system() != "Linux":
raise ValueError(
f"The AOT Inductor format is only supported on Linux, {platform.system()} is not a supported platform for this format"
)
if not file_path:
raise ValueError("File path cannot be empty. Please provide a valid file path")

Expand Down
5 changes: 5 additions & 0 deletions tests/py/dynamo/models/test_export_serde.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import importlib
import os
import platform
import tempfile
import unittest

Expand Down Expand Up @@ -645,6 +646,10 @@ def forward(self, x):


@pytest.mark.unit
@unittest.skipIf(
platform.system() != "Linux",
"Save and load in AOT Inductor format is only supported on Linux",
)
def test_save_load_aoti(ir, tmp_path):
"""
This tests save/load API on the AOTI format
Expand Down
Loading