GCC 17 has merged Function Multi-Versioning (FMV) support for Intel's Advanced Performance Extensions (APX) and Advanced Vector Extensions 10.2 (AVX10.2). This allows developers to write multiple optimized versions of the same function and have the runtime automatically select the best one based on the CPU's capabilities. New FMV attribute targets include 'avx10.2', 'apxf', 'arch=diamondrapids', and 'arch=novalake', targeting Intel's upcoming Nova Lake and Diamond Rapids processors. The feature complements existing ISA targets like AVX-512 and SSE4, and will ship in the GCC 17.1 stable release.
57 Impressions