Welcome to mirror list, hosted at ThFree Co, Russian Federation.

update_expected_outputs.sh « intgemm « decoder « tests - github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5d026e6f69e3a0f18390068efba7ee2d88cd9a95 (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
#!/bin/bash -x

# Script for re-generatting expected outputs and BLEU scores for CPUs with
# avx/avx2/avx512 architectures after running regression tests.
#
# On Valhalla the machines could be gna/hodor/sigyn, respectively.
#
# An example scenario on hodor:
#    1. Compile Marian with -DUSE_FBGEMM=on -DUSE_SENTENCEPIECE-on on hodor
#    2. Run regression tests, which fail due to updates in intgemm
#    3. Run `bash update_expected_outputs.sh avx2` from this directory
#    4. Add and commit *.expected* files

[[ $# -ne 1 ]] && { echo "This script must take avx/avx2/avx512 as the first argument"; exit 1; }

avx=$1

for suffix in '' .bleu; do
    cp intgemm_16bit.out$suffix        intgemm_16bit.$avx.expected$suffix
    cp intgemm_8bit.out$suffix         intgemm_8bit.$avx.expected$suffix

    cp intgemm_16bit_sse2.out$suffix   intgemm_16bit_sse2.$avx.expected$suffix
    cp intgemm_8bit_ssse3.out$suffix   intgemm_8bit_ssse3.$avx.expected$suffix
    cp intgemm_16bit_avx2.out$suffix   intgemm_16bit_avx2.$avx.expected$suffix
    cp intgemm_8bit_avx2.out$suffix    intgemm_8bit_avx2.$avx.expected$suffix

    #cp fbgemm_intgemm_8bit.out$suffix  fbgemm_intgemm_8bit.$avx.expected$suffix
    #cp intgemm_8bit_shifted.out$suffix intgemm_8bit_shifted.$avx.expected$suffix
done