sglang_v0.5.2/pytorch_2.8.0/third_party/XNNPACK/scripts/generate-f16-vhswish.sh

16 lines
784 B
Bash
Executable File

#!/bin/sh
# Copyright 2020 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 ##################################
tools/xngen src/f16-vhswish/neonfp16arith.c.in -D BATCH_TILE=8 -o src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u8.c &
tools/xngen src/f16-vhswish/neonfp16arith.c.in -D BATCH_TILE=16 -o src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c &
################################### x86 F16C ##################################
tools/xngen src/f16-vhswish/f16c.c.in -D BATCH_TILE=8 -o src/f16-vhswish/gen/f16-vhswish-f16c-u8.c &
tools/xngen src/f16-vhswish/f16c.c.in -D BATCH_TILE=16 -o src/f16-vhswish/gen/f16-vhswish-f16c-u16.c &
wait