Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 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 ################################### |
Marat Dukhan | 19dd91d | 2020-07-16 11:12:44 -0700 | [diff] [blame] | 8 | tools/xngen src/f32-vlrelu/scalar.c.in -D BATCH_TILE=1 -D WASM=0 -o src/f32-vlrelu/gen/vlrelu-scalar-x1.c |
| 9 | tools/xngen src/f32-vlrelu/scalar.c.in -D BATCH_TILE=2 -D WASM=0 -o src/f32-vlrelu/gen/vlrelu-scalar-x2.c |
| 10 | tools/xngen src/f32-vlrelu/scalar.c.in -D BATCH_TILE=4 -D WASM=0 -o src/f32-vlrelu/gen/vlrelu-scalar-x4.c |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 11 | |
| 12 | ##################################### WAsm #################################### |
Marat Dukhan | 19dd91d | 2020-07-16 11:12:44 -0700 | [diff] [blame] | 13 | tools/xngen src/f32-vlrelu/wasm.c.in -D BATCH_TILE=1 -D WASM=1 -o src/f32-vlrelu/gen/vlrelu-wasm-x1.c |
| 14 | tools/xngen src/f32-vlrelu/wasm.c.in -D BATCH_TILE=2 -D WASM=1 -o src/f32-vlrelu/gen/vlrelu-wasm-x2.c |
| 15 | tools/xngen src/f32-vlrelu/wasm.c.in -D BATCH_TILE=4 -D WASM=1 -o src/f32-vlrelu/gen/vlrelu-wasm-x4.c |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 16 | |
Marat Dukhan | e6502da | 2020-07-15 16:31:36 -0700 | [diff] [blame] | 17 | ################################## WAsm SIMD ################################## |
Marat Dukhan | 19dd91d | 2020-07-16 11:12:44 -0700 | [diff] [blame] | 18 | tools/xngen src/f32-vlrelu/wasmsimd-bitselect.c.in -D BATCH_TILE=4 -o src/f32-vlrelu/gen/vlrelu-wasmsimd-bitselect-x4.c |
| 19 | tools/xngen src/f32-vlrelu/wasmsimd-bitselect.c.in -D BATCH_TILE=8 -o src/f32-vlrelu/gen/vlrelu-wasmsimd-bitselect-x8.c |
Marat Dukhan | e6502da | 2020-07-15 16:31:36 -0700 | [diff] [blame] | 20 | |
Marat Dukhan | 19dd91d | 2020-07-16 11:12:44 -0700 | [diff] [blame] | 21 | tools/xngen src/f32-vlrelu/wasmsimd-minmax.c.in -D BATCH_TILE=4 -o src/f32-vlrelu/gen/vlrelu-wasmsimd-minmax-x4.c |
| 22 | tools/xngen src/f32-vlrelu/wasmsimd-minmax.c.in -D BATCH_TILE=8 -o src/f32-vlrelu/gen/vlrelu-wasmsimd-minmax-x8.c |
Marat Dukhan | e6502da | 2020-07-15 16:31:36 -0700 | [diff] [blame] | 23 | |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 24 | ################################### ARM NEON ################################## |
Marat Dukhan | 19dd91d | 2020-07-16 11:12:44 -0700 | [diff] [blame] | 25 | tools/xngen src/f32-vlrelu/neon.c.in -D BATCH_TILE=4 -o src/f32-vlrelu/gen/vlrelu-neon-x4.c |
| 26 | tools/xngen src/f32-vlrelu/neon.c.in -D BATCH_TILE=8 -o src/f32-vlrelu/gen/vlrelu-neon-x8.c |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 27 | |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 28 | ################################# x86 128-bit ################################# |
Marat Dukhan | 19dd91d | 2020-07-16 11:12:44 -0700 | [diff] [blame] | 29 | tools/xngen src/f32-vlrelu/sse.c.in -D BATCH_TILE=4 -D SSE=1 -o src/f32-vlrelu/gen/vlrelu-sse-x4.c |
| 30 | tools/xngen src/f32-vlrelu/sse.c.in -D BATCH_TILE=8 -D SSE=1 -o src/f32-vlrelu/gen/vlrelu-sse-x8.c |
Marat Dukhan | 0d3f467 | 2020-06-25 16:42:58 -0700 | [diff] [blame] | 31 | |
Marat Dukhan | 19dd91d | 2020-07-16 11:12:44 -0700 | [diff] [blame] | 32 | tools/xngen src/f32-vlrelu/sse.c.in -D BATCH_TILE=4 -D SSE=2 -o src/f32-vlrelu/gen/vlrelu-sse2-x4.c |
| 33 | tools/xngen src/f32-vlrelu/sse.c.in -D BATCH_TILE=8 -D SSE=2 -o src/f32-vlrelu/gen/vlrelu-sse2-x8.c |
Marat Dukhan | 0d3f467 | 2020-06-25 16:42:58 -0700 | [diff] [blame] | 34 | |
Marat Dukhan | 19dd91d | 2020-07-16 11:12:44 -0700 | [diff] [blame] | 35 | tools/xngen src/f32-vlrelu/sse.c.in -D BATCH_TILE=4 -D SSE=4 -o src/f32-vlrelu/gen/vlrelu-sse41-x4.c |
| 36 | tools/xngen src/f32-vlrelu/sse.c.in -D BATCH_TILE=8 -D SSE=4 -o src/f32-vlrelu/gen/vlrelu-sse41-x8.c |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 37 | |
| 38 | ################################# x86 256-bit ################################# |
Marat Dukhan | 19dd91d | 2020-07-16 11:12:44 -0700 | [diff] [blame] | 39 | tools/xngen src/f32-vlrelu/avx.c.in -D BATCH_TILE=8 -o src/f32-vlrelu/gen/vlrelu-avx-x8.c |
| 40 | tools/xngen src/f32-vlrelu/avx.c.in -D BATCH_TILE=16 -o src/f32-vlrelu/gen/vlrelu-avx-x16.c |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 41 | |
| 42 | ################################# x86 512-bit ################################# |
Marat Dukhan | 19dd91d | 2020-07-16 11:12:44 -0700 | [diff] [blame] | 43 | tools/xngen src/f32-vlrelu/avx512f.c.in -D BATCH_TILE=16 -o src/f32-vlrelu/gen/vlrelu-avx512f-x16.c |
| 44 | tools/xngen src/f32-vlrelu/avx512f.c.in -D BATCH_TILE=32 -o src/f32-vlrelu/gen/vlrelu-avx512f-x32.c |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 45 | |
| 46 | ################################## Unit tests ################################# |
| 47 | tools/generate-vunary-test.py --spec test/f32-vlrelu.yaml --output test/f32-vlrelu.cc |