Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 6ad377e

Browse files
committed
added iteration
1 parent d085e41 commit 6ad377e

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

scripts/margin.sh

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,35 @@ export OMP_NUM_THREADS=$(grep ^cpu\\scores /proc/cpuinfo | uniq | awk '{print $
99
echo "Cores configured $OMP_NUM_THREADS"
1010
export ONEDNN_VERBOSE=0
1111

12-
CNNS=(resnet50)
13-
for COMPILER in dynamo ipex_onednn_graph
12+
for i in 1 2 3 4 5 6 7
1413
do
15-
for DTYPE in float32 bfloat16
14+
CNNS=(resnet50)
15+
for COMPILER in dynamo ipex_onednn_graph
1616
do
17-
for BS in 0001 0032 0128
18-
do
19-
for name in "${CNNS[@]}"
20-
do
21-
echo "Benchmark $name with BS=$BS and DTYPE=$DTYPE"
22-
numactl -N 1 benchmark-run -b cnn -p "name='${name}',batch_size='$BS'" --dtype "${DTYPE}" --benchmark_desc "${name}_bs$BS" --host "${HOST}" -c "${COMPILER}" --skip_verification | true
23-
done
24-
done
17+
for DTYPE in float32 bfloat16
18+
do
19+
for BS in 0001 0032 0128
20+
do
21+
for name in "${CNNS[@]}"
22+
do
23+
echo "Benchmark $name with BS=$BS and DTYPE=$DTYPE"
24+
numactl -N 1 benchmark-run -b cnn -p "name='${name}',batch_size='$BS'" --dtype "${DTYPE}" --benchmark_desc "${name}_bs$BS" --host "${HOST}" -c "${COMPILER}" --skip_verification | true
25+
done
26+
done
27+
done
2528
done
26-
done
2729

2830

29-
LLMS=(gptj)
30-
for COMPILER in dynamo ipex
31-
do
32-
for DTYPE in float32 bfloat16
31+
LLMS=(gptj)
32+
for COMPILER in dynamo ipex
3333
do
34-
for name in "${LLMS[@]}"
34+
for DTYPE in float32 bfloat16
3535
do
36-
echo "Benchmark $name with DTYPE=$DTYPE"
37-
numactl -N 1 benchmark-run -b llm -p "name='${name}'" --dtype "${DTYPE}" --benchmark_desc "${name}_bs$BS" --host "${HOST}" -c "${COMPILER}" --skip_verification
36+
for name in "${LLMS[@]}"
37+
do
38+
echo "Benchmark $name with DTYPE=$DTYPE"
39+
numactl -N 1 benchmark-run -b llm -p "name='${name}'" --dtype "${DTYPE}" --benchmark_desc "${name}_bs$BS" --host "${HOST}" -c "${COMPILER}" --skip_verification
40+
done
3841
done
3942
done
4043
done
41-

0 commit comments

Comments
 (0)