[FFmpeg-devel] Discrepancy between comments for AVX512 flags

Henrik Gramner henrik at gramner.com
Sat Aug 27 15:15:21 EEST 2022


> On Sat, Aug 27, 2022 at 12:04 AM James Darnley <jdarnley at obe.tv> wrote:
> I think the feature selection is fine as-is, if you want to clarify
> the comments go ahead. AVX512 wouldn't be useful with a subset even
> smaller then what the plain AVX512 is looking for (there is also no
> CPUs with any smaller set, afaik), and most would even agree that the
> ICL set is the minimum they would be developing for.

To elaborate a bit further, the base AVX512 set is what Skylake
supports, and AVX51ICL is what Ice Lake supports. As far as I know,
Zen 4 will also support all the instructions Ice Lake supports, so
that should cover most systems.

We don't really care about Xeon Phi, so the Skylake subset is the de
facto minimum baseline.

This was done to get more manageable subsets that groups together
useful instructions in a way that maps reasonably well to real-world
hardware, in order to avoid having to deal with a dozen different
permutations.

There exists hardware which have instruction sets that fall outside
those two subsets, e.g. some Xeon Skylake-derivatives also has VNNI in
addition to the base Skylake subset and Tiger Lake has VP2INTERSECT,
but all things considered I consider the current design to be the best
compromise.

I'm sure Intel and AMD will add more instruction sets over time, so
we'll probably add new subsets in the future if/when there's a need
for it.

Henrik


More information about the ffmpeg-devel mailing list