1#!/bin/sh 2# Copyright 2020 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#################################### Scalar ################################### 8### Generic C micro-kernels 9tools/xngen src/f32-relu/scalar.c.in -D BATCH_TILE=1 -o src/f32-relu/gen/scalar-x1.c 10tools/xngen src/f32-relu/scalar.c.in -D BATCH_TILE=2 -o src/f32-relu/gen/scalar-x2.c 11tools/xngen src/f32-relu/scalar.c.in -D BATCH_TILE=4 -o src/f32-relu/gen/scalar-x4.c 12tools/xngen src/f32-relu/scalar.c.in -D BATCH_TILE=8 -o src/f32-relu/gen/scalar-x8.c 13 14### WAsm-specific micro-kernels 15tools/xngen src/f32-relu/wasm.c.in -D BATCH_TILE=1 -o src/f32-relu/gen/wasm-x1.c 16tools/xngen src/f32-relu/wasm.c.in -D BATCH_TILE=2 -o src/f32-relu/gen/wasm-x2.c 17tools/xngen src/f32-relu/wasm.c.in -D BATCH_TILE=4 -o src/f32-relu/gen/wasm-x4.c 18tools/xngen src/f32-relu/wasm.c.in -D BATCH_TILE=8 -o src/f32-relu/gen/wasm-x8.c 19 20################################## WAsm SIMD ################################## 21tools/xngen src/f32-relu/wasmsimd.c.in -D BATCH_TILE=4 -o src/f32-relu/gen/wasmsimd-x4.c 22tools/xngen src/f32-relu/wasmsimd.c.in -D BATCH_TILE=8 -o src/f32-relu/gen/wasmsimd-x8.c 23tools/xngen src/f32-relu/wasmsimd.c.in -D BATCH_TILE=16 -o src/f32-relu/gen/wasmsimd-x16.c 24 25################################### ARM NEON ################################## 26tools/xngen src/f32-relu/neon.c.in -D BATCH_TILE=4 -o src/f32-relu/gen/neon-x4.c 27tools/xngen src/f32-relu/neon.c.in -D BATCH_TILE=8 -o src/f32-relu/gen/neon-x8.c 28 29################################# x86 128-bit ################################# 30tools/xngen src/f32-relu/sse.c.in -D BATCH_TILE=4 -o src/f32-relu/gen/sse-x4.c 31tools/xngen src/f32-relu/sse.c.in -D BATCH_TILE=8 -o src/f32-relu/gen/sse-x8.c 32 33################################# x86 256-bit ################################# 34tools/xngen src/f32-relu/avx.c.in -D BATCH_TILE=8 -o src/f32-relu/gen/avx-x8.c 35tools/xngen src/f32-relu/avx.c.in -D BATCH_TILE=16 -o src/f32-relu/gen/avx-x16.c 36 37################################# x86 512-bit ################################# 38tools/xngen src/f32-relu/avx512f.c.in -D BATCH_TILE=16 -o src/f32-relu/gen/avx512f-x16.c 39tools/xngen src/f32-relu/avx512f.c.in -D BATCH_TILE=32 -o src/f32-relu/gen/avx512f-x32.c 40 41################################## Unit tests ################################# 42tools/generate-vunary-test.py --spec test/f32-relu.yaml --output test/f32-relu.cc 43