Marat Dukhan | fee66be | 2021-12-09 17:51:15 -0800 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # Copyright 2021 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 | ################################## ARM NEON ################################### |
| 8 | tools/xngen src/qs8-f32-vcvt/neon.c.in -D BATCH_TILE=8 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-neon-x8.c & |
| 9 | tools/xngen src/qs8-f32-vcvt/neon.c.in -D BATCH_TILE=16 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-neon-x16.c & |
| 10 | tools/xngen src/qs8-f32-vcvt/neon.c.in -D BATCH_TILE=24 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-neon-x24.c & |
| 11 | tools/xngen src/qs8-f32-vcvt/neon.c.in -D BATCH_TILE=32 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-neon-x32.c & |
| 12 | |
| 13 | tools/xngen src/qs8-f32-vcvt/neon.c.in -D BATCH_TILE=8 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-neon-x8.c & |
| 14 | tools/xngen src/qs8-f32-vcvt/neon.c.in -D BATCH_TILE=16 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-neon-x16.c & |
| 15 | tools/xngen src/qs8-f32-vcvt/neon.c.in -D BATCH_TILE=24 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-neon-x24.c & |
| 16 | tools/xngen src/qs8-f32-vcvt/neon.c.in -D BATCH_TILE=32 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-neon-x32.c & |
| 17 | |
Marat Dukhan | f9cf55d | 2021-12-09 18:54:00 -0800 | [diff] [blame] | 18 | ################################# x86 128-bit ################################# |
Marat Dukhan | d873fa2 | 2021-12-10 01:55:10 -0800 | [diff] [blame] | 19 | tools/xngen src/qs8-f32-vcvt/sse2.c.in -D BATCH_TILE=8 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-sse2-x8.c & |
| 20 | tools/xngen src/qs8-f32-vcvt/sse2.c.in -D BATCH_TILE=16 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-sse2-x16.c & |
| 21 | tools/xngen src/qs8-f32-vcvt/sse2.c.in -D BATCH_TILE=24 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-sse2-x24.c & |
| 22 | tools/xngen src/qs8-f32-vcvt/sse2.c.in -D BATCH_TILE=32 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-sse2-x32.c & |
| 23 | |
| 24 | tools/xngen src/qs8-f32-vcvt/sse2.c.in -D BATCH_TILE=8 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-sse2-x8.c & |
| 25 | tools/xngen src/qs8-f32-vcvt/sse2.c.in -D BATCH_TILE=16 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-sse2-x16.c & |
| 26 | tools/xngen src/qs8-f32-vcvt/sse2.c.in -D BATCH_TILE=24 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-sse2-x24.c & |
| 27 | tools/xngen src/qs8-f32-vcvt/sse2.c.in -D BATCH_TILE=32 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-sse2-x32.c & |
| 28 | |
Marat Dukhan | f9cf55d | 2021-12-09 18:54:00 -0800 | [diff] [blame] | 29 | tools/xngen src/qs8-f32-vcvt/sse4.c.in -D BATCH_TILE=8 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-sse41-x8.c & |
| 30 | tools/xngen src/qs8-f32-vcvt/sse4.c.in -D BATCH_TILE=16 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-sse41-x16.c & |
| 31 | tools/xngen src/qs8-f32-vcvt/sse4.c.in -D BATCH_TILE=24 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-sse41-x24.c & |
| 32 | tools/xngen src/qs8-f32-vcvt/sse4.c.in -D BATCH_TILE=32 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-sse41-x32.c & |
| 33 | |
| 34 | tools/xngen src/qs8-f32-vcvt/sse4.c.in -D BATCH_TILE=8 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-sse41-x8.c & |
| 35 | tools/xngen src/qs8-f32-vcvt/sse4.c.in -D BATCH_TILE=16 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-sse41-x16.c & |
| 36 | tools/xngen src/qs8-f32-vcvt/sse4.c.in -D BATCH_TILE=24 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-sse41-x24.c & |
| 37 | tools/xngen src/qs8-f32-vcvt/sse4.c.in -D BATCH_TILE=32 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-sse41-x32.c & |
| 38 | |
Marat Dukhan | cd4089f | 2021-12-14 23:53:33 -0800 | [diff] [blame] | 39 | ################################# x86 256-bit ################################# |
| 40 | tools/xngen src/qs8-f32-vcvt/avx.c.in -D BATCH_TILE=8 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-avx-x8.c & |
| 41 | tools/xngen src/qs8-f32-vcvt/avx.c.in -D BATCH_TILE=16 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-avx-x16.c & |
| 42 | tools/xngen src/qs8-f32-vcvt/avx.c.in -D BATCH_TILE=24 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-avx-x24.c & |
| 43 | tools/xngen src/qs8-f32-vcvt/avx.c.in -D BATCH_TILE=32 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-avx-x32.c & |
| 44 | |
| 45 | tools/xngen src/qs8-f32-vcvt/avx.c.in -D BATCH_TILE=8 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-avx-x8.c & |
| 46 | tools/xngen src/qs8-f32-vcvt/avx.c.in -D BATCH_TILE=16 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-avx-x16.c & |
| 47 | tools/xngen src/qs8-f32-vcvt/avx.c.in -D BATCH_TILE=24 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-avx-x24.c & |
| 48 | tools/xngen src/qs8-f32-vcvt/avx.c.in -D BATCH_TILE=32 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-avx-x32.c & |
| 49 | |
Marat Dukhan | 7b5f779 | 2021-12-15 00:29:39 -0800 | [diff] [blame] | 50 | tools/xngen src/qs8-f32-vcvt/avx2.c.in -D BATCH_TILE=8 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-avx2-x8.c & |
| 51 | tools/xngen src/qs8-f32-vcvt/avx2.c.in -D BATCH_TILE=16 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-avx2-x16.c & |
| 52 | tools/xngen src/qs8-f32-vcvt/avx2.c.in -D BATCH_TILE=24 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-avx2-x24.c & |
| 53 | tools/xngen src/qs8-f32-vcvt/avx2.c.in -D BATCH_TILE=32 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-avx2-x32.c & |
| 54 | |
| 55 | tools/xngen src/qs8-f32-vcvt/avx2.c.in -D BATCH_TILE=8 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-avx2-x8.c & |
| 56 | tools/xngen src/qs8-f32-vcvt/avx2.c.in -D BATCH_TILE=16 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-avx2-x16.c & |
| 57 | tools/xngen src/qs8-f32-vcvt/avx2.c.in -D BATCH_TILE=24 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-avx2-x24.c & |
| 58 | tools/xngen src/qs8-f32-vcvt/avx2.c.in -D BATCH_TILE=32 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-avx2-x32.c & |
| 59 | |
Marat Dukhan | 98393ad | 2021-12-15 11:07:40 -0800 | [diff] [blame] | 60 | ################################# x86 512-bit ################################# |
| 61 | tools/xngen src/qs8-f32-vcvt/avx512skx.c.in -D BATCH_TILE=16 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-avx512skx-x16.c & |
| 62 | tools/xngen src/qs8-f32-vcvt/avx512skx.c.in -D BATCH_TILE=32 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-avx512skx-x32.c & |
| 63 | tools/xngen src/qs8-f32-vcvt/avx512skx.c.in -D BATCH_TILE=48 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-avx512skx-x48.c & |
| 64 | tools/xngen src/qs8-f32-vcvt/avx512skx.c.in -D BATCH_TILE=64 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-avx512skx-x64.c & |
| 65 | |
| 66 | tools/xngen src/qs8-f32-vcvt/avx512skx.c.in -D BATCH_TILE=16 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-avx512skx-x16.c & |
| 67 | tools/xngen src/qs8-f32-vcvt/avx512skx.c.in -D BATCH_TILE=32 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-avx512skx-x32.c & |
| 68 | tools/xngen src/qs8-f32-vcvt/avx512skx.c.in -D BATCH_TILE=48 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-avx512skx-x48.c & |
| 69 | tools/xngen src/qs8-f32-vcvt/avx512skx.c.in -D BATCH_TILE=64 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-avx512skx-x64.c & |
| 70 | |
Marat Dukhan | fbf12b0 | 2021-12-09 22:39:15 -0800 | [diff] [blame] | 71 | ################################## WAsm SIMD ################################## |
| 72 | tools/xngen src/qs8-f32-vcvt/wasmsimd.c.in -D BATCH_TILE=8 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-wasmsimd-x8.c & |
| 73 | tools/xngen src/qs8-f32-vcvt/wasmsimd.c.in -D BATCH_TILE=16 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-wasmsimd-x16.c & |
| 74 | tools/xngen src/qs8-f32-vcvt/wasmsimd.c.in -D BATCH_TILE=24 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-wasmsimd-x24.c & |
| 75 | tools/xngen src/qs8-f32-vcvt/wasmsimd.c.in -D BATCH_TILE=32 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-wasmsimd-x32.c & |
| 76 | |
| 77 | tools/xngen src/qs8-f32-vcvt/wasmsimd.c.in -D BATCH_TILE=8 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-wasmsimd-x8.c & |
| 78 | tools/xngen src/qs8-f32-vcvt/wasmsimd.c.in -D BATCH_TILE=16 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-wasmsimd-x16.c & |
| 79 | tools/xngen src/qs8-f32-vcvt/wasmsimd.c.in -D BATCH_TILE=24 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-wasmsimd-x24.c & |
| 80 | tools/xngen src/qs8-f32-vcvt/wasmsimd.c.in -D BATCH_TILE=32 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-wasmsimd-x32.c & |
| 81 | |
Marat Dukhan | 86bd270 | 2021-12-10 02:19:56 -0800 | [diff] [blame] | 82 | #################################### Scalar ################################### |
| 83 | tools/xngen src/qs8-f32-vcvt/scalar.c.in -D BATCH_TILE=1 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-scalar-x1.c & |
| 84 | tools/xngen src/qs8-f32-vcvt/scalar.c.in -D BATCH_TILE=2 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-scalar-x2.c & |
| 85 | tools/xngen src/qs8-f32-vcvt/scalar.c.in -D BATCH_TILE=3 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-scalar-x3.c & |
| 86 | tools/xngen src/qs8-f32-vcvt/scalar.c.in -D BATCH_TILE=4 -D DATATYPE=QS8 -o src/qs8-f32-vcvt/gen/vcvt-scalar-x4.c & |
| 87 | |
| 88 | tools/xngen src/qs8-f32-vcvt/scalar.c.in -D BATCH_TILE=1 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-scalar-x1.c & |
| 89 | tools/xngen src/qs8-f32-vcvt/scalar.c.in -D BATCH_TILE=2 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-scalar-x2.c & |
| 90 | tools/xngen src/qs8-f32-vcvt/scalar.c.in -D BATCH_TILE=3 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-scalar-x3.c & |
| 91 | tools/xngen src/qs8-f32-vcvt/scalar.c.in -D BATCH_TILE=4 -D DATATYPE=QU8 -o src/qu8-f32-vcvt/gen/vcvt-scalar-x4.c & |
| 92 | |
Marat Dukhan | fee66be | 2021-12-09 17:51:15 -0800 | [diff] [blame] | 93 | ################################## Unit tests ################################# |
| 94 | tools/generate-vcvt-test.py --spec test/qs8-f32-vcvt.yaml --output test/qs8-f32-vcvt.cc & |
| 95 | tools/generate-vcvt-test.py --spec test/qu8-f32-vcvt.yaml --output test/qu8-f32-vcvt.cc & |
| 96 | |
| 97 | wait |