Skip to content

[2026秋季][Task10] jinger861-git#156

Open
jinger861-git wants to merge 1 commit into
DeepLink-org:mainfrom
jinger861-git:QY2026_Autumn_jinger861-git_Task10Grid_MLU
Open

[2026秋季][Task10] jinger861-git#156
jinger861-git wants to merge 1 commit into
DeepLink-org:mainfrom
jinger861-git:QY2026_Autumn_jinger861-git_Task10Grid_MLU

Conversation

@jinger861-git

Copy link
Copy Markdown
Contributor

Summary

  • Optimize Task10 Grid for Cambricon MLU.
  • Fuse grid-index computation, clamping, multi-dimensional Horner ID construction, and inverse unique mapping into one Triton kernel.
  • Statically unroll the dimension loop and vectorize over points.
  • Use a small-N on-chip O(N^2) inverse-index mapping for N <= 32, with a PyTorch fallback for larger inputs.

Accuracy

PASS with the official KS benchmark.

  • atol: 1e-2
  • rtol: 1e-2
  • Additional regression covered optional start/end, negative coordinates, float coordinates, and 3D coordinates; all inverse indices matched exactly.

Performance

  • v0: 0.080147 ms
  • v1: 0.004001 ms
  • speedup: 20.032x

Changed file

  • dlblas/kernels/ks_competition/QY2026_Autumn_jinger861-git_Task10Grid_MLU.py

@CLAassistant

CLAassistant commented Jul 10, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Signed-off-by: jinger861-git <jinger861@gmail.com>
@jinger861-git
jinger861-git force-pushed the QY2026_Autumn_jinger861-git_Task10Grid_MLU branch from 50ad980 to e34f3e1 Compare July 10, 2026 08:55
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