Check XPU Test Case Existence Skill

Trace PyTorch XPU test cases across upstream tests and torch-xpu-ops wrappers.

1|3|Updated Feb 28, 2025
One-click install
npx skills add https://github.com/daisyden/ai_for_validation --skill check-xpu-test-case-existence-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Check XPU Test Case Existence Skill
Source: https://github.com/daisyden/ai_for_validation/tree/main/opencode/issue_triage/.claude/skills/bug_scrub/analyze_ci_result/check_xpu_case_existence
Command: npx skills add https://github.com/daisyden/ai_for_validation --skill check-xpu-test-case-existence-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyzes cross-platform XPU test coverage to determine whether a PyTorch XPU test case exists, is missing, or is gated by wrappers, patching, or parametrization.

Core Features & Use Cases

  • Trace Test Existence: Inspect PyTorch tests, torch-xpu-ops wrappers, and distributed variants to locate corresponding test cases.
  • Assess Porting Status: Distinguish between XPU-native tests and CUDA/CPU equivalents, and flag missing ports.
  • Root Cause Diagnosis: Identify whether absence is due to XPUPatchForImport, OpInfo dtype restrictions, or runtime skips, guiding remediation.
  • Use Case: QA engineers can quickly determine if an XPU test case exists for a given operator and what needs to be ported or updated.

Quick Start

Review the relevant PyTorch and torch-xpu-ops test wrappers and determine whether the XPU test case is present, missing, or gated, then document the reason and recommended remediation.

Frequently Asked Questions about Check XPU Test Case Existence Skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if a PyTorch XPU test case exists across upstream tests?

To check PyTorch XPU test case existence, trace code paths, wrappers, and parametrization across pytorch/test, torch-xpu-ops wrappers, and distributed variants to determine porting status and locate missing tests.

Why does my XPU test case appear missing during PyTorch porting validation?

An XPU test case may appear missing due to XPUPatchForImport behavior, OpInfo dtype constraints, or runtime skip mechanisms that gate execution, rather than a true absence of the test code in the repository.

What is the best way to identify missing XPU test variants for specific operators?

Identify missing XPU test variants by inspecting OpInfo dtype restrictions and tracing XPUPatchForImport wrappers to classify missing tests and distinguish between XPU-native tests and CUDA/CPU equivalents.

Can I trace distributed test variants to determine XPU porting status?

Yes, you can trace distributed test variants alongside pytorch/test and torch-xpu-ops xpu wrappers to locate corresponding test cases and accurately determine whether an XPU port exists or requires remediation.

How do I diagnose runtime skips blocking XPU test execution in PyTorch?

Diagnose runtime skips blocking XPU test execution by analyzing XPUPatchForImport behavior and OpInfo dtype constraints to classify missing variants and generate evidence guiding specific fixes for the skipped tests.