Skip to content

Remove references to dropped platforms and AMD archs from tests - #2

Merged
cyyever merged 1 commit into
trimfrom
drop-dead-platform-flags
Oct 23, 2026
Merged

cyyever merged 1 commit into
trimfrom
drop-dead-platform-flags

Conversation

@cyyever

@cyyever cyyever commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • common_methods_invocations imported MI200_ARCH, which the trim removed, so every test that imports it failed at collection; test_cuda.py was one of them.
  • Delete IS_WINDOWS from common_utils. Fold the always-false flags IS_WINDOWS, IS_S390X and IS_CPU_CAPABILITY_SVE256 out of conditions, conditional expressions, if blocks and skip/xfail decorators, using a libcst pass that only touches names imported from torch.testing._internal. Local IS_WINDOWS definitions and torch.utils.cpp_extension.IS_WINDOWS are left alone.
  • Remove the MI200_ARCH / MI300_ARCH / NAVI3_ARCH skips, tolerances and imports. The ck_tile grouped-gemm checks keep only MI350_ARCH.

Test plan

  • All 105 changed files compile. Compared with trim, ruff reports no new F821 or F401 in them.
  • With the changed files on the gfx1201 sandbox's torch install, pytest --collect-only test_cuda.py collects 846 tests (before: ImportError).

🤖 Generated with Claude Code

The trim removed Windows, s390x and SVE256 support and AMD hardware below
gfx1150, but tests and torch.testing helpers still referenced IS_WINDOWS,
IS_S390X, IS_CPU_CAPABILITY_SVE256, MI200_ARCH, MI300_ARCH and NAVI3_ARCH.
common_methods_invocations imported MI200_ARCH, so every test importing
it (test_cuda.py among them) failed at collection.

Delete IS_WINDOWS from common_utils and fold these always-false flags out
of conditions, conditional expressions, `if` blocks and skip/xfail
decorators, dropping the imports and the skips that can no longer fire.
ck_tile grouped-gemm checks keep only gfx950. ruff reports no new F821 or
F401 in the touched files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cyyever
cyyever force-pushed the drop-dead-platform-flags branch from 9ddac87 to 4f97cce Compare October 23, 2026 00:44
@cyyever
cyyever merged commit 08d5d4c into trim Oct 23, 2026
15 checks passed
@cyyever
cyyever deleted the drop-dead-platform-flags branch October 23, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant