Skip to content

Instantly share code, notes, and snippets.

# Tune for Icelake and newer CPU Famely
build:icelake --copt=-march=icelake-server
build:icelake --host_copt=-march=native
build:icelake --copt=-O3
# Tune for SkyLake (Not include AVX512)
build:skylake --copt=-march=skylake-server
build:skylake --host_copt=-march=native
build:skylake --copt=-O3
...
# More CPU famalies
ONEDNN_MAX_CPU_ISA=AVX2
perf stat -e cpu/event=0x28,umask=0x18,name=core_power_lvl1_turbo_license/,cpu/event=0x28,umask=0x20,name=core_power_lvl2_turbo_license/,cpu/event=0x28,umask=0x40,name=core_power_throttle/
grep -v "\-1" /proc/*/arch_status