test / scripts /generate-f16-rsum.sh
Androidonnxfork's picture
Upload folder using huggingface_hub
8b7c501
raw
history blame
1.12 kB
#!/bin/sh
# Copyright 2023 Google LLC
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
############################## ARM NEON+FP16ARITH #############################
tools/xngen src/f16-rsum/neonfp16arith.c.in -D BATCH_TILE=8 -D ACCUMULATORS=1 -o src/f16-rsum/gen/f16-rsum-neonfp16arith-x8.c &
tools/xngen src/f16-rsum/neonfp16arith.c.in -D BATCH_TILE=16 -D ACCUMULATORS=2 -o src/f16-rsum/gen/f16-rsum-neonfp16arith-x16-acc2.c &
tools/xngen src/f16-rsum/neonfp16arith.c.in -D BATCH_TILE=24 -D ACCUMULATORS=3 -o src/f16-rsum/gen/f16-rsum-neonfp16arith-x24-acc3.c &
tools/xngen src/f16-rsum/neonfp16arith.c.in -D BATCH_TILE=32 -D ACCUMULATORS=2 -o src/f16-rsum/gen/f16-rsum-neonfp16arith-x32-acc2.c &
tools/xngen src/f16-rsum/neonfp16arith.c.in -D BATCH_TILE=32 -D ACCUMULATORS=4 -o src/f16-rsum/gen/f16-rsum-neonfp16arith-x32-acc4.c &
################################## Unit tests #################################
tools/generate-reduce-test.py --tester RSumMicrokernelTester --spec test/f16-rsum.yaml --output test/f16-rsum.cc &
wait