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