Add cortexx925 and cortexa725 sub-configs for NVIDIA GB10#939
Draft
jeffhammond wants to merge 2 commits into
Draft
Add cortexx925 and cortexa725 sub-configs for NVIDIA GB10#939jeffhammond wants to merge 2 commits into
jeffhammond wants to merge 2 commits into
Conversation
Add two ARM sub-configs for the NVIDIA GB10 (DGX Spark) CPU, named by
microarchitecture per BLIS convention (cortexa57, firestorm, ...):
- cortexx925: for the Cortex-X925 performance cores (part 0xd85, 6 FP
pipes x 128-bit NEON, 2 MB L2), -mcpu=cortex-x925, block sizes
MC=336/KC=336. This is the config used for GB10: its Cortex-A725
efficiency cores (part 0xd87) also select it, so one context runs
across the heterogeneous chip.
- cortexa725: a standalone config for non-GB10 Cortex-A725 hardware
(2 FP pipes, 512 KB L2), -mcpu=cortex-a725, MC=96/KC=384 to fit the
smaller L2. Not in the arm64 umbrella; build explicitly.
Both reuse the armv8a NEON asm micro-kernels (6x8 dgemm / 8x12 sgemm; SVE2
is VL=128b so it offers nothing over NEON) and wire the armv8a SUP path.
Autodetection maps parts 0xd85/0xd87 -> cortexx925 (0xd87 -> cortexa725 in
a cortexa725-only build), with the enum/string/family/gentconf entries and
the ARM_CPU_PART_CORTEX_{X925,A725} MIDR macros added.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
-mcpu=cortex-x925 and -mcpu=cortex-a725 were added to gcc in 14 and to clang in 19, so older compilers reject them. Mirror the existing armsve handling and add these configs to the compiler blacklist for gcc<14 / clang<19 (and Apple clang, which does not yet target these Armv9.2 cores). This keeps the arm64 umbrella buildable with older toolchains (e.g. CI's gcc-10 job): the unsupported sub-configs are dropped with a warning instead of failing the build. Verified: gcc-13 blacklists both and arm64 still configures cleanly; gcc-16 keeps them. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Member
|
@jeffhammond can you mark this (and any other related PRs) as draft so that they don't trigger CI for works in progress? |
jeffhammond
marked this pull request as draft
July 16, 2026 15:24
Member
Author
|
I'm done with them for now. Feel free to flip to ready once you have a chance to decide they are worthwhile. |
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.
Add two ARM sub-configs for the NVIDIA GB10 (DGX Spark) CPU, named by microarchitecture per BLIS convention (cortexa57, firestorm, ...):
Both reuse the armv8a NEON asm micro-kernels (6x8 dgemm / 8x12 sgemm; SVE2 is VL=128b so it offers nothing over NEON) and wire the armv8a SUP path. Autodetection maps parts 0xd85/0xd87 -> cortexx925 (0xd87 -> cortexa725 in a cortexa725-only build), with the enum/string/family/gentconf entries and the ARM_CPU_PART_CORTEX_{X925,A725} MIDR macros added.