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

26 lines
1.9 KiB
Bash
Executable File

#!/bin/sh
# Copyright 2019 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 ##################################
### Microkernels without unrolling
tools/xngen src/f16-spmm/neonfp16arith.c.in -D MR=8 -D NR=1 -D UNROLL=1 -o src/f16-spmm/gen/f16-spmm-8x1-minmax-neonfp16arith.c &
tools/xngen src/f16-spmm/neonfp16arith.c.in -D MR=16 -D NR=1 -D UNROLL=1 -o src/f16-spmm/gen/f16-spmm-16x1-minmax-neonfp16arith.c &
tools/xngen src/f16-spmm/neonfp16arith.c.in -D MR=24 -D NR=1 -D UNROLL=1 -o src/f16-spmm/gen/f16-spmm-24x1-minmax-neonfp16arith.c &
tools/xngen src/f16-spmm/neonfp16arith.c.in -D MR=32 -D NR=1 -D UNROLL=1 -o src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith.c &
### Microkernels with 2X unrolling
tools/xngen src/f16-spmm/neonfp16arith.c.in -D MR=8 -D NR=1 -D UNROLL=2 -o src/f16-spmm/gen/f16-spmm-8x1-minmax-neonfp16arith-x2.c &
tools/xngen src/f16-spmm/neonfp16arith.c.in -D MR=16 -D NR=1 -D UNROLL=2 -o src/f16-spmm/gen/f16-spmm-16x1-minmax-neonfp16arith-x2.c &
tools/xngen src/f16-spmm/neonfp16arith.c.in -D MR=24 -D NR=1 -D UNROLL=2 -o src/f16-spmm/gen/f16-spmm-24x1-minmax-neonfp16arith-x2.c &
tools/xngen src/f16-spmm/neonfp16arith.c.in -D MR=32 -D NR=1 -D UNROLL=2 -o src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-x2.c &
### Microkernels with software pipelining
tools/xngen src/f16-spmm/neonfp16arith-pipelined.c.in -D MR=8 -D NR=1 -o src/f16-spmm/gen/f16-spmm-8x1-minmax-neonfp16arith-pipelined.c &
tools/xngen src/f16-spmm/neonfp16arith-pipelined.c.in -D MR=16 -D NR=1 -o src/f16-spmm/gen/f16-spmm-16x1-minmax-neonfp16arith-pipelined.c &
tools/xngen src/f16-spmm/neonfp16arith-pipelined.c.in -D MR=24 -D NR=1 -o src/f16-spmm/gen/f16-spmm-24x1-minmax-neonfp16arith-pipelined.c &
tools/xngen src/f16-spmm/neonfp16arith-pipelined.c.in -D MR=32 -D NR=1 -o src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c &
wait