Repository navigation
v2.1.0 – Fine-Grained Modular Headers, Object API Polish & API Explorer Upgrade
Pre-releaseSummary
MIPP v2.1.0 delivers a major architectural upgrade designed to eliminate compilation time and compiler memory bloat in large-scale HPC codes, stabilizes the high-level C++ Object API (mipp::Rvd / mipp::Rvm) across all vector widths and register groupings (
Highlights
1. Fine-Grained Modular Headers (--granularity fine)
To solve the compilation scalability bottlenecks of modern C++ SIMD abstractions (where complex template metaprogramming and monolithic headers cause lexical parsing explosion and high memory consumption), MIPP's offline generator now supports two configurable granularity tiers:
--granularity coarse: Per-operation modular headers containing all vector widths and data types (mipp/<dialect>/fun/<op>.hpp). Ideal for standard modular integration.--granularity fine: Maximum build isolation. Generates an atomic, self-contained header per operation, per masking variant (uunmasked,mmasked,zzero-masked,ssource-masked), and per LMUL (m1,m2,m4,m8,d2):#include <mipp/obj/fun/u/m8/loadu.hpp> #include <mipp/obj/fun/m/m8/add.hpp>
- Decoupled
obj/common.hpp:mipp::Rvdandmipp::Rvmmember functions now rely on on-demand member instantiation traits (details::*_op), ensuring translation units only pay for—and include—the exact operations they instantiate.
2. Streamlined C++ Object API & Interoperability
-
Full Multi-LMUL Support: Seamless manipulation of scalable register groups (
$LMUL \in {1, 2, 4, 8}$ ) with native operator overloads (+,-,*,[], comparison operators, ...). -
Concise Masked Syntax: Because
Rvd<T, LMUL>andRvm<T, LMUL>are concrete template classes, the compiler automatically deducesTandLMUL. Masked operations can now be called cleanly without template noise:using mipp::M; auto res = mipp::add<M>(mask, a, b); // T and LMUL deduced automatically
-
Object / Functional Interoperability: Added complete interop routines and examples allowing zero-cost transitions between high-level
mipp::Rvdobjects and low-level functional types (examples/mipp_interop.cpp). -
API Nomenclature: Renamed internal enum
MKINDtoVARIANT(VARIANT::U,VARIANT::M,VARIANT::Z,VARIANT::S).
3. MIPP API Explorer & Compiler Explorer (Godbolt) Integration
- Dual-View Algorithm Modal: Interactive vector algorithm visualizer comparing side-by-side implementations across C99, C++ Functional, and C++ Object dialects.
- Standalone Flat C99 Generator: Generates dependency-free, single-file C99 kernels ready for zero-dependency integration (still WIP).
- 1-Click Compiler Explorer (Godbolt): Direct integration into the API Explorer to inspect compiler assembly across x86-64, ARM NEON, and RISC-V targets live (still WIP).
4. Instruction Set Architectures (ISA) & Math Extensions
- AVX-512: Added some missing native masked instructions and fixed scalar fallback paths.
- Masked Mathematical Kernels: Added Level-2 masking variants for trigonometric functions (
cos,sin,acos, ...).
5. Tooling, Generator & CI Infrastructure
- GitLab CI: Automated validation for both
--granularity coarseand--granularity fineheader modes across x86 and ARM runners. - Generator Robustness:
- Implemented in-memory file descriptor buffering to eliminate
EMFILE(Too many open files) during massive fine-grained generation. - Canonicalized include paths to prevent GCC
#pragma onceheader deduplication issues.
- Implemented in-memory file descriptor buffering to eliminate
Getting Started & Generating Headers
Clone the repository and generate the header suite according to your project's build requirements:
git clone --recursive -b v2.1.0 https://github.com/aff3ct/MIPP.git
cd mipp/generator
# Option A: Fine-grained headers (recommended for fastest compilation & minimal footprint)
python3 gen_mipp_headers.py --granularity fine
# Option B: Coarse-grained headers (recommended for standard modular include setups)
python3 gen_mipp_headers.py --granularity coarseFull Changelog: v2.0.3...v2.1.0