aboutsummaryrefslogtreecommitdiff
path: root/ldcg-onednn-benchmarks/test-onednn.sh
blob: 016a8bad74d07ff423f3c7caf3b9f940d2570d05 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash -ex

if [ ! -d "${WORKSPACE}" ]; then
    set -x
    WORKSPACE=$(pwd)
else
    set -ex
fi


if [ -d "${WORKSPACE}"/oneDNN-results ]; then
    rm -r "${WORKSPACE}"/oneDNN-results
fi

mkdir "${WORKSPACE}"/oneDNN-results

cd "${WORKSPACE}"/oneDNN/tests/benchdnn

./benchdnn --binary --batch=inputs/binary/shapes_ci | tee "${WORKSPACE}"/oneDNN-results/binary-output.txt
#./benchdnn --brgemm --batch=inputs/brgemm/shapes_2d | tee "${WORKSPACE}"/oneDNN-results/brgemm-output.txt
./benchdnn --bnorm --batch=inputs/bnorm/shapes_resnet_50 | tee "${WORKSPACE}"/oneDNN-results/bnorm-output.txt
./benchdnn --concat --batch=inputs/concat/test_concat_all | tee "${WORKSPACE}"/oneDNN-results/concat-output.txt
./benchdnn --conv --cfg=f32 --dir=FWD_B --batch=inputs/conv/set_conv_all | tee "${WORKSPACE}"/oneDNN-results/conv-output.txt
./benchdnn --deconv --cfg=f32 --dir=FWD_B --batch=inputs/conv/set_conv_all | tee "${WORKSPACE}"/oneDNN-results/deconv-output.txt
./benchdnn --eltwise --batch=inputs/eltwise/shapes_ci | tee "${WORKSPACE}"/oneDNN-results/eltwise-output.txt
#./benchdnn --mode=P --graph --case=./tests/benchdnn/inputs/graph/pattern/f32/conv_post_ops_fusion.json | tee "${WORKSPACE}"/oneDNN-results/graph-output.txt
./benchdnn --ip --batch=inputs/ip/shapes_ci | tee "${WORKSPACE}"/oneDNN-results/ip-output.txt
./benchdnn --lnorm --batch=shapes_ci | tee "${WORKSPACE}"/oneDNN-results/lnorm-output.txt
./benchdnn --lrn --batch=inputs/lrn/shapes_ci | tee "${WORKSPACE}"/oneDNN-results/lrn-output.txt
./benchdnn --matmul --batch=inputs/matmul/shapes_2d | tee "${WORKSPACE}"/oneDNN-results/matmul-output.txt
./benchdnn --pool --batch=inputs/pool/shapes_2d | tee "${WORKSPACE}"/oneDNN-results/pool-output.txt
./benchdnn --prelu --batch=inputs/prelu/shapes_ci | tee "${WORKSPACE}"/oneDNN-results/prelu-output.txt
./benchdnn --reduction --batch=inputs/reduction/shapes_ci | tee "${WORKSPACE}"/oneDNN-results/reduction-output.txt
#./benchdnn --reorder --batch=inputs/reorder/test_reorder_all | tee "${WORKSPACE}"/oneDNN-results/reorder-output.txt
./benchdnn --resampling --batch=inputs/resampling/shapes_2d | tee "${WORKSPACE}"/oneDNN-results/resampling-output.txt
./benchdnn --rnn --batch=inputs/rnn/shapes_training | tee "${WORKSPACE}"/oneDNN-results/rnn-output.txt
./benchdnn --shuffle --batch=inputs/shuffle/test_shuffle_all | tee "${WORKSPACE}"/oneDNN-results/shuffle-output.txt
./benchdnn --softmax --batch=shapes_ci | tee "${WORKSPACE}"/oneDNN-results/softmax-output.txt
./benchdnn --sum --batch=inputs/sum/test_sum_all | tee "${WORKSPACE}"/oneDNN-results/sum-output.txt
./benchdnn --zeropad --batch=inputs/zeropad/test_zeropad_ci | tee "${WORKSPACE}"/oneDNN-results/zeropad-output.txt