Skip to content

Dump GPU Optests#52

Closed
YifanShenSZ wants to merge 1 commit into
apple:mainfrom
YifanShenSZ:yifan-shen3/dump-gpu-optests
Closed

Dump GPU Optests#52
YifanShenSZ wants to merge 1 commit into
apple:mainfrom
YifanShenSZ:yifan-shen3/dump-gpu-optests

Conversation

@YifanShenSZ

Copy link
Copy Markdown

Dump op tests and run on non-CPU backends, similar to coreai-torch

Usage: In addition to our usual pytest

uv run pytest python/tests/ -p no:warnings -n 4

Add 2 optional args

  1. --compute-unit-kind=gpu
  2. --dump-optests

Testing: Locally tested with

uv run pytest python/tests/ -p no:warnings -n 4 --compute-unit-kind=gpu --dump-optests

coreai_program: AIProgram,
asset_path: Path,
) -> InferenceFunction:
from tests.conftest import get_test_specialization_options

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should wire test code into production.

Can we try either:

A - Adding an optional "AssetDumper" structure that we pass here
B - Using decorations / patches at the test level to induce this behavior?

@tjia1818

tjia1818 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

stale for too long, closing for now. Feel free to re-open if needed.

@tjia1818 tjia1818 closed this Jul 1, 2026
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.

3 participants