File: generate-f16-spmm.sh

package info (click to toggle)
xnnpack 0.0~git20201031.beca652%2Breally.git20200323.1b35463-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 27,260 kB
  • sloc: cpp: 287,277; ansic: 197,749; asm: 25,609; python: 7,794; sh: 1,286; makefile: 14
file content (20 lines) | stat: -rwxr-xr-x 1,426 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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/8x1-neonfp16arith.c
tools/xngen src/f16-spmm/neonfp16arith.c.in -D MR=16 -D NR=1 -D UNROLL=1 -o src/f16-spmm/gen/16x1-neonfp16arith.c
tools/xngen src/f16-spmm/neonfp16arith.c.in -D MR=24 -D NR=1 -D UNROLL=1 -o src/f16-spmm/gen/24x1-neonfp16arith.c
tools/xngen src/f16-spmm/neonfp16arith.c.in -D MR=32 -D NR=1 -D UNROLL=1 -o src/f16-spmm/gen/32x1-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/8x1-neonfp16arith-unroll2.c
tools/xngen src/f16-spmm/neonfp16arith.c.in -D MR=16  -D NR=1 -D UNROLL=2 -o src/f16-spmm/gen/16x1-neonfp16arith-unroll2.c
tools/xngen src/f16-spmm/neonfp16arith.c.in -D MR=24  -D NR=1 -D UNROLL=2 -o src/f16-spmm/gen/24x1-neonfp16arith-unroll2.c
tools/xngen src/f16-spmm/neonfp16arith.c.in -D MR=32  -D NR=1 -D UNROLL=2 -o src/f16-spmm/gen/32x1-neonfp16arith-unroll2.c

################################## Unit tests #################################
tools/generate-spmm-test.py --spec test/f16-spmm.yaml --output test/f16-spmm.cc