Skip to content

Add suport for new Spacemit X100 (fireflyk3) RISC-V CPU - #1

Open
julianmorillo wants to merge 15 commits into
hugomeiland:archdetect-riscvfrom
julianmorillo:patch-1
Open

Add suport for new Spacemit X100 (fireflyk3) RISC-V CPU#1
julianmorillo wants to merge 15 commits into
hugomeiland:archdetect-riscvfrom
julianmorillo:patch-1

Conversation

@julianmorillo

Copy link
Copy Markdown

No description provided.

boegel and others added 15 commits September 3, 2026 18:54
…ar the test suite can be quite memory-hungry
…hire Rapids

eessi_archdetect.sh selects a microarchitecture purely from CPU feature flags.
Intel Granite Rapids (Xeon 6) exposes the same visible /proc/cpuinfo flags as
Sapphire/Emerald Rapids - its new features such as amx_fp16 are hidden by the
kernel - so the flag match lands on x86_64/intel/sapphirerapids.

Refine that match using the CPU model number, the only reliable Granite Rapids
discriminator on Linux: once the flag match yields sapphirerapids, check the
model and prepend x86_64/intel/graniterapids on family 6 / model 173 (0xAD,
GNR-SP/AP) or 174 (0xAE, GNR-D).

Non-breaking: cpupath -a returns a priority-ordered fallback chain and
downstream subdir resolution selects the first path that exists, so Granite
Rapids transparently falls back to sapphirerapids until a graniterapids build
is shipped. Sapphire Rapids (model 143) and Emerald Rapids (model 207) are
unaffected.

Add a test fixture captured from a real Azure Standard_D2s_v7 (Intel Xeon
6973P-C, family 6 model 173). Verified on real Granite Rapids silicon and
against the full archdetect fixture suite.

Bump VERSION to 1.3.0.
… numbers

Address review feedback from @boegel: document the model-number -> microarch
mapping (family 6, models 0xAD/0xAE) with its source - the kernel's
arch/x86/include/asm/intel-family.h (INTEL_GRANITERAPIDS_X/_D via IFM()).
only use half the cores for building/testing PETSc, since in particular the test suite can be quite memory-hungry
Use full path in the zlib configuration option for PETSc for better logging
archdetect: detect Granite Rapids via CPU model when flags match Sapphire Rapids
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.

5 participants