[Test] Compile-only mode for tests on non-supporting GPUs#153
Merged
yaoyaoding merged 2 commits intomainfrom May 5, 2026
Merged
[Test] Compile-only mode for tests on non-supporting GPUs#153yaoyaoding merged 2 commits intomainfrom
yaoyaoding merged 2 commits intomainfrom
Conversation
Adds InstantiatedScript.compile(*args, **kwargs) -> JitInstance, a public API that transpiles + builds every schedule for the given arguments without executing the kernel, benchmarking, or persisting a dispatch choice. Adds tilus.target.scope(target) as a context manager for temporarily overriding the build target. Changes tilus.testing.requires.X behavior: when the current GPU does not support X, the test now runs in compile-only mode instead of being hard-skipped -- the build target is scoped to X, InstantiatedScript.__call__ is patched to delegate to compile() and raise an internal sentinel, and the wrapper catches the sentinel so a successful compile counts as a passing test. Lets CI on older arches (e.g. sm89) cover compilation paths for newer arches (e.g. sm100a) without requiring matching hardware. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: Yaoyao Ding <dingyaoyao.cs@gmail.com>
The CI runner has an L4 (sm89) but tests for newer-arch instructions need to compile against compute_100 / compute_100a. The docker image was nvidia/cuda:12.6.2-devel-ubuntu22.04, whose nvcc is 12.6 and does not know compute_100. Bump to nvidia/cuda:13.0.0-devel-ubuntu22.04 so the compile-only paths can build sm_100/sm_100a kernels (matches the torch 13.0 binaries already pulled at runtime). Also tighten two test annotations whose kernels emit instructions unsupported below sm_100a: - test_copy_async_tensor_cta uses cp.async.bulk.tensor with the .cta_group::1 modifier (sm_100+); was annotated sm_90. - test_cluster_launch_control uses clusterlaunchcontrol.try_cancel with the multicast variant (sm_100a only); was annotated sm_100. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: Yaoyao Ding <dingyaoyao.cs@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds InstantiatedScript.compile(*args, **kwargs) -> JitInstance, a public API that transpiles + builds every schedule for the given arguments without executing the kernel, benchmarking, or persisting a dispatch choice. Adds tilus.target.scope(target) as a context manager for temporarily overriding the build target.
Changes tilus.testing.requires.X behavior: when the current GPU does not support X, the test now runs in compile-only mode instead of being hard-skipped -- the build target is scoped to X, InstantiatedScript.call is patched to delegate to compile() and raise an internal sentinel, and the wrapper catches the sentinel so a successful compile counts as a passing test. Lets CI on older arches (e.g. sm89) cover compilation paths for newer arches (e.g. sm100a) without requiring matching hardware.