Skip to content

Commit

Permalink
[EZ] Test torch.compile on 3.12 (#1871)
Browse files Browse the repository at this point in the history
Test plan: CI
  • Loading branch information
malfet committed Jun 17, 2024
1 parent 3b032fc commit 2681a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/smoke_test/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ def smoke_test_cuda(package: str, runtime_error_check: str, torch_compile_check:
version = imported_module._extension._check_cuda_version()
print(f"{module['name']} CUDA: {version}")

# torch.compile is available on macos-arm64 and Linux for python 3.8-3.11
if torch_compile_check == "enabled" and sys.version_info < (3, 12, 0) and (
# torch.compile is available on macos-arm64 and Linux for python 3.8-3.12
if torch_compile_check == "enabled" and sys.version_info < (3, 13, 0) and (
(target_os == "linux" and torch.cuda.is_available()) or
target_os == "macos-arm64"):
smoke_test_compile()
Expand Down

0 comments on commit 2681a99

Please sign in to comment.