Conversation
Sanitizer(compile=True), or tile-sanitizer --compile, checks a launch statically on the host-compiled TTIR instead of interpreting it. The kernel is not launched, so no GPU is needed and outputs are not written. - Every autotune config is checked with Z3 against the launch's scalar arguments, grid and tensor layouts; a launch is ok only if every config is proven in bounds. - Findings: out-of-bounds (against the view's element footprint, gaps of strided views included), integer-overflow on address, mask, branch and loop values, and division-by-zero, each with a witness. - Anything that cannot be modeled is reported as unsupported with a typed refusal; a solver unknown or timeout never counts as a proof. A kernel that fails to compile for the target is unsupported and the program continues; a call that does not bind raises as untraced. - Each launch records an IRVerdict with per-config verdicts in Launch.records.
mark14wu
added this pull request to stack #481
September 29, 2026 20:19
mark14wu
marked this pull request as ready for review
September 29, 2026 20:20
Performance Benchmark
Iterations: 1 warmup + 20 measured |
This branch has not been deployed
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.
Summary
Adds a compiled mode to the sanitizer:
Sanitizer(compile=True)ortile-sanitizer --compile script.py. Each launch is checked statically on the host-compiled TTIR instead of being interpreted. The kernel is not launched, so no GPU is needed and output tensors are not written.Stacked on #479 (base branch
ir-mode-core); review and merge that one first.Behaviour
okonly if every config is proven in bounds for those arguments.out-of-bounds, against the view's element footprint (gaps of strided views count, as in eager mode);integer-overflowof fixed-width address, mask, branch and loop values;division-by-zero.unsupportedwith a typed refusal kind; a solverunknown/ timeout never counts as a proof, and each query has its own timeout.num_ctas>1on the defaultcuda:89) isunsupportedand the program continues; a call that does not bind the kernel's signature raises exactly as it does untraced.IRVerdictwith per-config verdicts inLaunch.records;tilelens.save()round-trips it.Evaluation
Differential corpus of 223 kernels against a concrete oracle (Triton's interpreter checking every access): 0 false proofs and 0 false out-of-bounds findings on Triton 3.6 and 3.8. 25 cases (~11%) are
unsupported, mostly data-dependent masks, early returns /scf.while, gathers and multiple loops.Testing
Full relevant set, CPU only: Triton 3.6 1379 passed / 31 skipped; Triton 3.8 1395 passed / 23 skipped. Only the pre-existing failures listed in the base PR remain.
Known limitations
okholds for the launch's own arguments; since kernels are not launched, a later launch that reads an earlier launch's outputs sees unwritten values.scf.while, early returns, calls, gathers and data-dependent masks/branches are reported asunsupported.cuda:89; kernels that need another target can passtarget=or setTILELENS_IR_TARGET.