~/AVX512 Instruction Set Overview

Jul 16, 2019


AVX512 is an Intel SIMD instruction set extension available in certain Intel x86 CPUs. It allows processing of eight 64bit data or sixteen 32bit data in a single instruction, increasing computational throughput. AVX512 provides masked operations, wider registers, and expanded instructions for math, logic, and data manipulation.

Key points

Example SIMD addition in AVX512 intrinsics:

1
2
3
4
#include <immintrin.h>
__m512 x = _mm512_set1_ps(1.0f);
__m512 y = _mm512_set1_ps(2.0f);
__m512 sum = _mm512_add_ps(x, y);

Benefits

Limitations

Check your CPU using:

1
cat /proc/cpuinfo | grep avx512

AVX512 accelerates data processing but only benefits code compiled or written to use it. For more, read the official developer guide.

Tags: [avx512] [cpu] [instructions]