Skip to content

Dev/env to control kernel preload - #4157

Merged
valarLip merged 4 commits into
mainfrom
dev/env_to_control_kernel_preload
Jul 11, 2026
Merged

valarLip merged 4 commits into
mainfrom
dev/env_to_control_kernel_preload

Conversation

@yadaish

@yadaish yadaish commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

yadaish and others added 2 commits July 9, 2026 16:46
Introduce AITER_MOE_KERNARG_PRELOAD (0/1, default 1) in tensor_shim as a
single global toggle for the amdgpu-kernarg-preload compile hint, and wire
it into all MoE flydsl kernels. Also make the preload count overridable via
AITER_MOE_KERNARG_PRELOAD_COUNT.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…PRELOAD

Rename MOE_KERNARG_PRELOAD/_COUNT (and their AITER_MOE_* env vars) to
AITER_FLYDSL_KERNARG_PRELOAD/_COUNT since the toggle applies to flydsl
kernels generally, not just MoE. Bump the preload count default to 32.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@yadaish
yadaish requested a review from a team July 9, 2026 08:51
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:triton-300x Run an additional Triton test job on MI300X in PRs; main branch always runs both MI35X and MI300X
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 4157 --add-label <label>

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
valarLip pushed a commit that referenced this pull request Jul 9, 2026
Adds a Claude Code skill at .claude/skills/review-pr/SKILL.md that
provides a structured, multi-section checklist for reviewing aiter PRs.

Covers: backbone tier safety (B1-B5), data-type consistency (D1-D8),
fake/abstract function correctness (D6-D7), correctness hazards (C1-C3),
performance flags (P1-P4), hardware-specific checks (HK1-HK11), FP8
correctness (F1-F6), multi-stream sync (G1), and a blind-spot self-check
before verdict generation (Step 7.5).

Tested against 4 real PRs: aiter #4156, #4157 and ATOM #1527, #1526.

Co-authored-by: root <[email protected]>
@zufayu
zufayu requested a review from valarLip July 10, 2026 01:49
valarLip
valarLip previously approved these changes Jul 10, 2026
…k memory

per_1x32_f4_quant materializes many full-size intermediates in the
f32_to_mxfp4 path, OOMing on very large tensors. For >=3D inputs above
4 GiB, iterate the outermost dim and assemble the results, so peak memory
scales with a single slice. Quantization is per-block along the last dim,
so slicing leading dims is exact; shuffle is applied once on the
assembled scale to preserve its cross-row layout.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@valarLip
valarLip merged commit 974db3e into main Jul 11, 2026
42 checks passed
@valarLip
valarLip deleted the dev/env_to_control_kernel_preload branch July 11, 2026 12:16
@yadaish yadaish self-assigned this Jul 14, 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.

2 participants