xref: /aosp_15_r20/external/XNNPACK/scripts/generate-f16-velu.sh (revision 4bdc94577ba0e567308109d787f7fec7b531ce36)
1#!/bin/sh
2# Copyright 2022 Google LLC
3#
4# This source code is licensed under the BSD-style license found in the
5# LICENSE file in the root directory of this source tree.
6
7################################### ARM NEON ##################################
8tools/xngen src/f16-velu/neonfp16arith-rr1-p3.c.in -D BATCH_TILE=8  -o src/f16-velu/gen/velu-neonfp16arith-rr1-p3-x8.c &
9tools/xngen src/f16-velu/neonfp16arith-rr1-p3.c.in -D BATCH_TILE=16 -o src/f16-velu/gen/velu-neonfp16arith-rr1-p3-x16.c &
10
11################################### x86 AVX2 ##################################
12tools/xngen src/f16-velu/avx2-rr1-p3.c.in -D BATCH_TILE=8  -o src/f16-velu/gen/velu-avx2-rr1-p3-x8.c &
13tools/xngen src/f16-velu/avx2-rr1-p3.c.in -D BATCH_TILE=16 -o src/f16-velu/gen/velu-avx2-rr1-p3-x16.c &
14
15################################## Unit tests #################################
16tools/generate-vunary-test.py --spec test/f16-velu.yaml --output test/f16-velu.cc &
17
18wait
19