Skip to content

[MLAS] Document SDE based validation of the ISA dispatch tiers - #29903

Merged
hariharans29 merged 2 commits into
microsoft:mainfrom
blazingphoenix7:docs-mlas-isa-validation
Jul 28, 2026
Merged

[MLAS] Document SDE based validation of the ISA dispatch tiers#29903
hariharans29 merged 2 commits into
microsoft:mainfrom
blazingphoenix7:docs-mlas-isa-validation

Conversation

@blazingphoenix7

Copy link
Copy Markdown
Contributor

Description

Adds docs/MLAS_ISA_Validation.md: how to exercise a chosen MLAS dispatch tier with Intel SDE (chip flag to tier mapping), and how to prove the ISA kernel actually executed rather than the fallback passing in its place, using the instruction histogram (-mix) with its two pitfalls spelled out (the $static-counts sections count unexecuted disassembly, and running with no chip flag exposes every feature rather than a native baseline). Links from the MLAS README's testing section.

Motivation and Context

#29862 measured that several dispatch tiers (the AVX-VNNI-INT8 int8 GEMMs, the AMX U8S8 path, the AVX-NE-CONVERT cast) pass the suite identically whether or not the ISA kernel ran, and no current CI machine reaches them. This writes down the manual workflow so it is reproducible by anyone; the pipeline-job half of that issue's proposal is unchanged and separate.

MLAS picks kernels from CPUID at runtime, so a green test suite only
covers the tiers the executing machine reaches; several tiers have no
covering machine in CI (microsoft#29862). Documents the Intel SDE workflow for
exercising a chosen tier, the chip flag to dispatch tier mapping, and
the instruction histogram method that distinguishes the ISA kernel
actually executing from the fallback passing in its place, including
the dynamic versus static section pitfall and the no chip flag trap.
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@blazingphoenix7

blazingphoenix7 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

@hariharans29 Please take a look at your convenience. Thanks

Copilot AI left a comment

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.

Pull request overview

Documents a reproducible developer workflow for validating MLAS runtime CPUID-dispatched ISA tiers (including those not reachable on common CI hardware) using Intel SDE, and links that guidance from the MLAS README to improve discoverability.

Changes:

  • Add a new guide (docs/MLAS_ISA_Validation.md) describing how to run MLAS unit tests under Intel SDE per “chip” target and verify actual kernel execution via -mix instruction histograms.
  • Link the new guide from the MLAS README testing section to highlight the limitations of hardware-only validation for dispatched tiers.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
onnxruntime/core/mlas/README.md Adds a pointer to the new SDE-based validation guide from the MLAS unit test documentation.
docs/MLAS_ISA_Validation.md New documentation describing tier selection with SDE chip flags and verification via instruction histograms.

Comment thread docs/MLAS_ISA_Validation.md
hariharans29
hariharans29 previously approved these changes Jul 27, 2026
@hariharans29
hariharans29 merged commit adfa095 into microsoft:main Jul 28, 2026
85 of 86 checks passed
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