aboutsummaryrefslogtreecommitdiffhomepage
path: root/externals/xbyak/sample/cpuid/cpuid.sh
blob: c55fd2842f8de56467d3d64dc571dc10178fc9df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

UPDATE=0
if [ $# -eq 1 ]; then
UPDATE=1
fi

if [ $UPDATE == 1 ]; then
  echo "UPDATE"
fi

make -C ../ test_util64

cpus=(p4p mrm pnr nhm wsm snb ivb hsw bdw slt slm glm glp tnt skl cnl icl skx clx cpx icx knl knm tgl adl mtl rpl spr gnr srf grr arl lnl)

for cpu in ${cpus[@]} ; do
  echo $cpu
  if [ $UPDATE == 1 ]; then
    ~/bin/sde -$cpu -- ../test_util64 -cpuid > $cpu.txt
  else
    ~/bin/sde -$cpu -- ../test_util64 -cpuid > tmp.txt
    diff $cpu.txt tmp.txt
  fi
done