Modern Apps git

← Modern-Apps.git

library:ml: a tiled int8 pointwise convolution, as fast as the fp16 one

Commit
e062de9fe65f37b917cd832f865da8a6d9b1c97c
Author
vayun-mathur <[email protected]>
When
2026-08-28 21:06 UTC (3 months ago)
Parents
56540d7

Diff

library/ml/src/main/rust/shaders/conv_point_int8.comp
diff --git a/library/ml/src/main/rust/shaders/conv_point_int8.comp b/library/ml/src/main/rust/shaders/conv_point_int8.compnew file mode 100644index 0000000000..5285575778--- /dev/null+++ b/library/ml/src/main/rust/shaders/conv_point_int8.comp@@ -0,0 +1,113 @@+#version 450+//! `conv_point.comp` with int8 weights, dequantised by one scale per output channel.+//!+//! `out[o][p] = act(scale[o] * sum_i W[o][i] * in[i][p] + bias[o])`, `p` over positions.+//!+//! # Why this exists as well as `conv_int8.comp`+//!+//! `conv_int8.comp` is shaped like `conv.comp`: one invocation per output element, each reading+//! its own weight row from global memory with no reuse. That is survivable for a spatial kernel+//! and catastrophic for a wide `1 x 1` over a short sequence — the same 15.2 GFLOP/s against a+//! device peak of order 1000 that `conv_point.comp` exists to fix.+//!+//! Supertonic's sampler is 92% pointwise convolution by parameter count and runs `2 * STEPS`+//! times per utterance, so quantising it onto the untiled path would move almost all of its work+//! onto the slow one and take text-to-speech past real time. Quantising is a size win only if the+//! tiled shape has an int8 form, which is this.+//!+//! # What differs from `conv_point.comp`+//!+//! Two lines, and nothing structural. The weight tile is staged from `int8_at` through the 32-bit+//! view of the weights buffer rather than read as fp16, and the finished accumulator is scaled+//! before the bias is added. Everything else — the tiling, the 2 x 2 register blocking, both+//! barriers — is that shader unchanged; see it for why the tiling is shaped the way it is.+//!+//! The scale is per **output channel**, which is the tile's row axis, so an invocation's two rows+//! carry two scales and each applies to a whole finished accumulator. A per-input-channel scale+//! could not be hoisted out of the inner loop this way.+//!+//! `p.weight` is a **32-bit word** offset, as in `conv_int8.comp`. `p.act_weight` holds the scale+//! tensor as an fp16 element index, which is why `Act::PRelu` cannot ride along.++#include "common.glsl"++/// Output channels and positions per workgroup, and input channels per staging step.+#define TILE 16u++/// The staged blocks. `TILE * TILE` each, so 2 KB of shared memory at fp32.+shared float weight_tile[TILE][TILE];+shared float input_tile[TILE][TILE];++void main() {+    // The tile this workgroup owns. Uniform across the workgroup, so returning early cannot+    // strand a barrier — every invocation takes the same branch.+    uint tile = gl_WorkGroupID.y * gl_NumWorkGroups.x + gl_WorkGroupID.x;+    if (tile >= p.count) {+        return;+    }+    uint positions = p.out_h * p.out_w;+    uint tiles_across = (positions + TILE - 1u) / TILE;+    uint channel_base = (tile / tiles_across) * TILE;+    uint position_base = (tile % tiles_across) * TILE;++    // This invocation's 2 x 2 corner of the tile.+    uint lid = gl_LocalInvocationID.x;+    uint local_row = (lid >> 3u) * 2u;+    uint local_col = (lid & 7u) * 2u;++    float acc[2][2] = { { 0.0, 0.0 }, { 0.0, 0.0 } };++    for (uint k0 = 0u; k0 < p.in_c; k0 += TILE) {+        // Stage both blocks. 256 elements each, 64 invocations, so four apiece. Out-of-range+        // entries are zeroed rather than skipped, which lets the inner loop run unguarded.+        for (uint n = 0u; n < 4u; n++) {+            uint slot = lid + n * 64u;+            uint r = slot >> 4u;+            uint c = slot & 15u;++            uint channel = channel_base + r;+            uint k_weight = k0 + c;+            weight_tile[r][c] = (channel < p.out_c && k_weight < p.in_c)+                ? float(int8_at(p.weight, channel * p.in_c + k_weight))+                : 0.0;++            uint k_input = k0 + r;+            uint position = position_base + c;+            input_tile[r][c] = (k_input < p.in_c && position < positions)+                ? float(arena[p.in0 + k_input * positions + position])+                : 0.0;+        }+        barrier();++        for (uint k = 0u; k < TILE; k++) {+            float a0 = weight_tile[local_row][k];+            float a1 = weight_tile[local_row + 1u][k];+            float b0 = input_tile[k][local_col];+            float b1 = input_tile[k][local_col + 1u];+            acc[0][0] += a0 * b0;+            acc[0][1] += a0 * b1;+            acc[1][0] += a1 * b0;+            acc[1][1] += a1 * b1;+        }+        // Both barriers are needed: the second stops the next step's staging from overwriting+        // tiles an invocation is still reading.+        barrier();+    }++    for (uint i = 0u; i < 2u; i++) {+        uint channel = channel_base + local_row + i;+        if (channel >= p.out_c) {+            continue;+        }+        float scale = float(weights[p.act_weight + channel]);+        float offset = float(weights[p.bias + channel]);+        for (uint j = 0u; j < 2u; j++) {+            uint position = position_base + local_col + j;+            if (position >= positions) {+                continue;+            }+            float value = activate(acc[i][j] * scale + offset, p.act, channel);+            arena[p.out_at + channel * positions + position] = float16_t(value);+        }+    }+}
library/ml/src/main/rust/src/nets/mod.rs
diff --git a/library/ml/src/main/rust/src/nets/mod.rs b/library/ml/src/main/rust/src/nets/mod.rsindex 027fc83c1e..d04a1fb4c2 100644--- a/library/ml/src/main/rust/src/nets/mod.rs+++ b/library/ml/src/main/rust/src/nets/mod.rs@@ -278,13 +278,23 @@ pub enum Kind {     ///     /// [`Push::count`] is the **tile** count for this kind, not the output element count.     ConvPoint,-    /// [`Kind::Conv`] with int8 weights and one per-tensor dequantisation scale.+    /// [`Kind::Conv`] with int8 weights and one dequantisation scale per output channel.     ///     /// Only for a network where the weights dominate the download. The scale multiplies the     /// finished accumulator rather than every tap, so the inner loop costs what fp16 costs;     /// activations stay fp16, which is simpler than the export''s dynamic quantisation and-    /// strictly more accurate. [`Push::weight`] is a **word** offset here, not an fp16 one.+    /// strictly more accurate. [`Push::weight`] is a **word** offset here, not an fp16 one, and+    /// [`Push::act_weight`] holds the scale tensor — which is why [`Act::PRelu`] is refused.     ConvInt8,+    /// [`Kind::ConvPoint`] with int8 weights: the tiled lowering of [`Kind::ConvInt8`].+    ///+    /// `Builder::emit` routes an int8 convolution here under exactly the conditions an fp16 one+    /// reaches [`Kind::ConvPoint`] under — ungrouped, `1 x 1`, stride 1, unpadded. Without it,+    /// quantising Supertonic's sampler would move 92% of its parameters onto the untiled path,+    /// which is far slower than the size saving is worth; see `conv_point_int8.comp`.+    ///+    /// [`Push::count`] is the **tile** count here, as it is for [`Kind::ConvPoint`].+    ConvPointInt8,     /// `out[c][t] = table[id(t)][c]`, an embedding lookup.     ///     /// The only op here whose addresses depend on the data. Ids arrive as an ordinary fp16@@ -711,6 +721,13 @@ pub struct Builder<'a> { /// boundary `.maml` aligns its tensors to. const ALIGN_ELEMS: u32 = 8; +/// `TILE` in `shaders/conv_point.comp` and `shaders/conv_point_int8.comp`.+///+/// Both tiled shaders are dispatched one workgroup per tile, so [`Builder::emit`] has to know+/// this to compute [`Push::count`]. Shared by the two so the fp16 and int8 lowerings cannot+/// drift apart.+const CONV_POINT_TILE: u32 = 16;+ /// `erf`, to about 1.5e-7 — Abramowitz and Stegun 7.1.26. /// /// Rust has no `erf`, and [`Act::Gelu`] is the exact form rather than the tanh approximation, so@@ -1628,8 +1645,23 @@ impl<'a> Builder<'a> {                 act,             } => {                 let (si, so) = (shape(*input), shape(*out));+                // The same test `Node::Conv` applies below, less the two cases that cannot arise+                // here: there is no transposed int8 convolution, and `Builder::conv_int8` refuses+                // `Act::PRelu` outright because the scale occupies the offset a slope would need.+                //+                // It matters more here than it does there: Supertonic's sampler is 92% pointwise+                // by parameter count and runs `2 * STEPS` times an utterance, so leaving it on the+                // untiled shader would cost far more time than int8 saves space.+                let tiled = *group == 1+                    && kernel == &(1, 1)+                    && stride == &(1, 1)+                    && pad == &(0, 0)+                    && si.h == so.h+                    && si.w == so.w;+                let positions = so.h * so.w;+                let tiles = so.c.div_ceil(CONV_POINT_TILE) * positions.div_ceil(CONV_POINT_TILE);                 ops.push(Op::Dispatch {-                    kind: Kind::ConvInt8,+                    kind: if tiled { Kind::ConvPointInt8 } else { Kind::ConvInt8 },                     push: Push {                         in0: at(*input)?,                         out: at(*out)?,@@ -1646,6 +1678,10 @@ impl<'a> Builder<'a> {                         out_c: so.c,                         out_h: so.h,                         out_w: so.w,+                        // `conv_point_int8.comp` reads none of these, unlike `Kind::ConvPoint`'s+                        // push block, which leaves them at zero. They are filled in either way so+                        // that `nets::reference` can serve both kinds from one `conv_int8`, whose+                        // arithmetic is identical once the geometry above holds.                         kh: kernel.0,                         kw: kernel.1,                         stride_h: stride.0,@@ -1656,10 +1692,11 @@ impl<'a> Builder<'a> {                         pad_l: pad.1,                         group: *group,                         act: act.code(),-                        count: so.len(),+                        // Tiles for the tiled kind, one workgroup each; output elements otherwise.+                        count: if tiled { tiles } else { so.len() },                         ..Push::default()                     },-                    invocations: so.len(),+                    invocations: if tiled { tiles * 64 } else { so.len() },                 });             }             Node::Conv {@@ -1690,9 +1727,9 @@ impl<'a> Builder<'a> {                     && si.w == so.w                     && !matches!(act, Act::PRelu(_));                 if tiled {-                    const TILE: u32 = 16;                     let positions = so.h * so.w;-                    let tiles = so.c.div_ceil(TILE) * positions.div_ceil(TILE);+                    let tiles =+                        so.c.div_ceil(CONV_POINT_TILE) * positions.div_ceil(CONV_POINT_TILE);                     ops.push(Op::Dispatch {                         kind: Kind::ConvPoint,                         push: Push {@@ -2342,15 +2379,16 @@ pub(crate) mod tests {         }     } -    /// A dispatch kind''s name, with `Conv`''s tiled lowering folded back into `Conv`.+    /// A dispatch kind''s name, with `Conv`''s tiled lowerings folded back into the graph op.     ///     /// The op-inventory tests state what a network contains. Whether an ungrouped `1 x 1` is     /// served by `conv.comp` or the tiled `conv_point.comp` is a lowering decision that those     /// tests should not see, and folding it here keeps the assertions readable as counts of-    /// convolutions rather than counts of shaders.+    /// convolutions rather than counts of shaders. The int8 pair folds the same way.     pub fn name_of(kind: super::Kind) -> String {         match kind {             super::Kind::ConvPoint => "Conv".to_string(),+            super::Kind::ConvPointInt8 => "ConvInt8".to_string(),             other => format!("{other:?}"),         }     }@@ -2412,7 +2450,7 @@ pub(crate) mod tests {                         // As `Conv`: the whole input plane, whatever the kernel touches.                         Kind::ConvInt8 => vec![(push.in0, dense)],                         // count is tiles here, so the read span is the input plane.-                        Kind::ConvPoint => vec![(push.in0, dense)],+                        Kind::ConvPoint | Kind::ConvPointInt8 => vec![(push.in0, dense)],                         // Twice what it writes: the filter half and the gate half.                         Kind::GatedTanh => vec![(push.in0, written * 2)],                         _ => vec![(push.in0, dense)],
library/ml/src/main/rust/src/nets/reference.rs
diff --git a/library/ml/src/main/rust/src/nets/reference.rs b/library/ml/src/main/rust/src/nets/reference.rsindex 3bc103e49d..94a18b7d4c 100644--- a/library/ml/src/main/rust/src/nets/reference.rs+++ b/library/ml/src/main/rust/src/nets/reference.rs@@ -211,7 +211,10 @@ impl Reference {                     Kind::Rotary => self.rotary(push),                     Kind::GatedTanh => self.gated_tanh(push),                     Kind::ConvPoint => self.conv_point(push),-                    Kind::ConvInt8 => self.conv_int8(push),+                    // The tiled int8 lowering computes exactly what the untiled one does, and+                    // `Builder::emit` fills the geometry fields in for both, so there is one+                    // implementation rather than two that have to be kept agreeing.+                    Kind::ConvInt8 | Kind::ConvPointInt8 => self.conv_int8(push),                     Kind::FlipChannels => self.flip_channels(push),                 },             };
library/ml/src/main/rust/src/vulkan/parity.rs
diff --git a/library/ml/src/main/rust/src/vulkan/parity.rs b/library/ml/src/main/rust/src/vulkan/parity.rsindex 888ab2450f..11377f0b05 100644--- a/library/ml/src/main/rust/src/vulkan/parity.rs+++ b/library/ml/src/main/rust/src/vulkan/parity.rs@@ -299,10 +299,15 @@ fn an_int8_convolution_agrees_with_the_reference() {     // scales, because a shader that read `scale[0]` for every channel — which is what this op did     // before the export turned out to be quantised per column — still returns the right shape and     // three wrong channels.+    //+    // Deliberately a `1 x 3` rather than a `1 x 1`: an ungrouped `1 x 1` now lowers to+    // `Kind::ConvPointInt8` instead, so a pointwise fixture here would leave `conv_int8.comp`+    // untested on the device. The spatial kernel also puts its zero padding under test, which is+    // the one thing the tiled path has none of.     let out_channels = 4u32;     let in_channels = 3u32;     let width = 5u32;-    let kernel: Vec<i8> = (0..(out_channels * in_channels) as i32)+    let kernel: Vec<i8> = (0..(out_channels * in_channels * 3) as i32)         .map(|i| ((i * 7) % 61 - 30) as i8)         .collect();     let scales: Vec<f32> = vec![0.25, 0.5, 0.0625, 1.0];@@ -310,7 +315,7 @@ fn an_int8_convolution_agrees_with_the_reference() {     let blob = write_mixed(         graph::SUPERTONIC_VE,         &[-            Fixture::I8(vec![out_channels, in_channels, 1, 1], kernel),+            Fixture::I8(vec![out_channels, in_channels, 1, 3], kernel),             Fixture::F16(vec![out_channels], scales),             Fixture::F16(vec![out_channels], biases),         ],@@ -324,10 +329,10 @@ fn an_int8_convolution_agrees_with_the_reference() {         first,         0,         out_channels,+        (1, 3),         (1, 1),         (1, 1),-        (1, 1),-        (0, 0, 0, 0),+        (0, 1, 0, 1),         1,         Act::Relu,     );@@ -335,6 +340,161 @@ fn an_int8_convolution_agrees_with_the_reference() {     compare("an int8 convolution", plan, weights.data().to_vec(), &[&input]); } +#[test]+#[ignore = "needs a Vulkan device"]+fn a_tiled_int8_convolution_agrees_with_the_reference() {+    // `conv_point_int8.comp`, which every ungrouped 1x1 int8 convolution lowers to and which+    // Supertonic's sampler is 92% made of by parameter count.+    //+    // The shape is chosen so nothing about the tiling is exercised only at its happy path: 20+    // output channels and 21 positions are each more than one 16-wide tile and neither divides it,+    // so the four tiles include partial ones in both axes, and 24 input channels make the+    // accumulation loop take two staging steps of which the second is half out of range. A shader+    // that dropped the zero-fill on an out-of-range staging slot, or that mismatched its two+    // barriers, is wrong only on a fixture with all three of those properties.+    let out_channels = 20u32;+    let in_channels = 24u32;+    let width = 21u32;+    let kernel: Vec<i8> = (0..(out_channels * in_channels) as i32)+        .map(|i| ((i * 37) % 251 - 125) as i8)+        .collect();+    // Distinct per channel, as in the untiled fixture, and every one an exact multiple of a power+    // of two so the interpreter and the device read one number rather than two roundings of one.+    let scales: Vec<f32> = (0..out_channels).map(|c| 0.007_812_5 * (1.0 + c as f32)).collect();+    let biases: Vec<f32> = spread(out_channels as usize, 1.9);+    let blob = write_mixed(+        graph::SUPERTONIC_VE,+        &[+            Fixture::I8(vec![out_channels, in_channels, 1, 1], kernel),+            Fixture::F16(vec![out_channels], scales),+            Fixture::F16(vec![out_channels], biases),+        ],+    );+    let weights = Weights::parse(&blob, graph::SUPERTONIC_VE).expect("the fixture blob parses");+    let input = spread((in_channels * width) as usize, 0.7);++    let mut builder = Builder::new(&weights);+    let first = builder.input(Shape::new(in_channels, 1, width));+    // Gelu because that is what follows these convolutions in the sampler, and because it is the+    // activation whose input range the dequantisation scale decides.+    let last = builder.conv_int8(+        first,+        0,+        out_channels,+        (1, 1),+        (1, 1),+        (1, 1),+        (0, 0, 0, 0),+        1,+        Act::Gelu,+    );+    let plan = builder.finish(&[last]).expect("the tiled int8 fixture plan builds");+    compare("a tiled int8 convolution", plan, weights.data().to_vec(), &[&input]);+}++#[test]+#[ignore = "needs a Vulkan device"]+fn report_the_tiled_int8_convolution_against_the_tiled_fp16_one() {+    // The measurement Phase 2 of the int8 plan is gated on, printed by+    // `cargo test -- --ignored --nocapture`. `conv_point_int8.comp` exists so that quantising+    // Supertonic's sampler does not move 92% of its parameters onto the untiled `conv_int8.comp`,+    // which was measured at 15.2 GFLOP/s against a device peak of order 1000. That is only worth+    // having if the int8 tiled path is close to the fp16 tiled one, because the alternative to+    // quantising is bundling 198 MB of fp16 rather than 105 MB of int8 — a size decision, not a+    // speed one, so a large slowdown here means take the size.+    //+    // Eight chained `512 -> 512` projections over 64 positions: the sampler's shape, deep enough+    // that the shader rather than the submit-and-read-back dominates.+    const CHANNELS: u32 = 512;+    const POSITIONS: u32 = 64;+    const LAYERS: usize = 8;+    const RUNS: usize = 20;++    // The two nets compute the same numbers, not merely the same shapes: the int8 weights are+    // exact small integers and the scale is an exact power of two, so dequantising is lossless+    // here. That is what lets the timings be compared against each other *and* the outputs+    // compared for equality, which is the only thing standing between a fast shader and a shader+    // that quietly wrote nothing.+    //+    // The divisor is what keeps eight chained layers inside fp16. A `512`-wide dot product of+    // weights spread over -3..3 has a gain of about `2 * sqrt(512) / DIVISOR`, so at 16 the chain+    // grows by ~2.8 a layer and reaches infinity by the eighth; at 64 it shrinks, which fp16+    // tolerates far better than it tolerates overflow.+    const DIVISOR: f32 = 64.0;+    let taps = (CHANNELS * CHANNELS) as usize;+    let int8_kernel: Vec<i8> = (0..taps).map(|i| (i % 7) as i8 - 3).collect();+    let fp16_kernel: Vec<f32> = int8_kernel.iter().map(|&w| f32::from(w) / DIVISOR).collect();+    let scales = vec![1.0 / DIVISOR; CHANNELS as usize];+    let biases = vec![0.0f32; CHANNELS as usize];++    let mut fp16_tensors = Vec::new();+    let mut int8_tensors = Vec::new();+    for _ in 0..LAYERS {+        let dims = vec![CHANNELS, CHANNELS, 1, 1];+        fp16_tensors.push(Fixture::F16(dims.clone(), fp16_kernel.clone()));+        fp16_tensors.push(Fixture::F16(vec![CHANNELS], biases.clone()));+        int8_tensors.push(Fixture::I8(dims, int8_kernel.clone()));+        int8_tensors.push(Fixture::F16(vec![CHANNELS], scales.clone()));+        int8_tensors.push(Fixture::F16(vec![CHANNELS], biases.clone()));+    }++    let input = spread((CHANNELS * POSITIONS) as usize, 0.5);+    let mut timings = Vec::new();+    let mut outputs = Vec::new();+    for (what, tensors, per_layer) in+        [("fp16", fp16_tensors, 2usize), ("int8", int8_tensors, 3usize)]+    {+        let blob = write_mixed(graph::SUPERTONIC_VE, &tensors);+        let weights = Weights::parse(&blob, graph::SUPERTONIC_VE).expect("the blob parses");+        let mut builder = Builder::new(&weights);+        let mut x = builder.input(Shape::new(CHANNELS, 1, POSITIONS));+        for layer in 0..LAYERS {+            let at = layer * per_layer;+            x = if per_layer == 2 {+                builder.conv(x, at, CHANNELS, (1, 1), (1, 1), (1, 1), (0, 0, 0, 0), 1, Act::Gelu)+            } else {+                builder.conv_int8(+                    x,+                    at,+                    CHANNELS,+                    (1, 1),+                    (1, 1),+                    (1, 1),+                    (0, 0, 0, 0),+                    1,+                    Act::Gelu,+                )+            };+        }+        let plan = builder.finish(&[x]).expect("the benchmark plan builds");+        let mut net = Net::new(device(), plan, &weights, RESCALE_ONLY)+            .expect("the plan records into a command buffer");+        // One discarded run: the first submit pays for pipeline warm-up and for faulting the+        // weights into device memory, neither of which a steady-state utterance pays per step.+        let first = net.infer_raw(&input).expect("the benchmark submits and reads back");+        let start = std::time::Instant::now();+        for _ in 0..RUNS {+            net.infer_raw(&input).expect("the benchmark submits and reads back");+        }+        let each = start.elapsed().as_secs_f64() / RUNS as f64;+        // Two operations per multiply-accumulate, which is how the 15.2 GFLOP/s this shader+        // exists to escape was counted.+        let flops = 2.0 * f64::from(CHANNELS) * f64::from(CHANNELS) * f64::from(POSITIONS)+            * LAYERS as f64;+        println!("{what}: {:.3} ms per pass, {:.1} GFLOP/s", each * 1e3, flops / each / 1e9);+        timings.push(each);+        outputs.push(first);+    }++    match (timings.as_slice(), outputs.as_slice()) {+        ([fp16, int8], [from_fp16, from_int8]) => {+            println!("int8 / fp16 = {:.2}x", int8 / fp16);+            matches("the two benchmark nets", from_fp16, from_int8);+        }+        _ => panic!("two nets were timed"),+    }+}+ #[test] #[ignore = "needs a Vulkan device"] fn a_rebuilt_net_agrees_with_the_reference_at_each_shape() {
library/ml/src/main/rust/src/vulkan/pipeline.rs
diff --git a/library/ml/src/main/rust/src/vulkan/pipeline.rs b/library/ml/src/main/rust/src/vulkan/pipeline.rsindex 703ec324a3..614bf66b26 100644--- a/library/ml/src/main/rust/src/vulkan/pipeline.rs+++ b/library/ml/src/main/rust/src/vulkan/pipeline.rs@@ -50,6 +50,8 @@ const GATED_TANH: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/gated_tanh.c const MUL: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/mul.comp.spv")); const CONV_POINT: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/conv_point.comp.spv")); const CONV_INT8: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/conv_int8.comp.spv"));+const CONV_POINT_INT8: &[u8] =+    include_bytes!(concat!(env!("OUT_DIR"), "/conv_point_int8.comp.spv")); const FLIP_CHANNELS: &[u8] =     include_bytes!(concat!(env!("OUT_DIR"), "/flip_channels.comp.spv")); const CONSTANT: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/constant.comp.spv"));@@ -57,7 +59,7 @@ const ADD_BCAST: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/add_bcast.com const ROTARY: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/rotary.comp.spv"));  /// Every shader, in the order [`Pipelines::create`] destructures them.-const SPIRV: [&[u8]; 26] = [+const SPIRV: [&[u8]; 27] = [     CONV,     CONV_TRANSPOSE,     MAXPOOL,@@ -80,6 +82,7 @@ const SPIRV: [&[u8]; 26] = [     FLIP_CHANNELS,     CONV_INT8,     CONV_POINT,+    CONV_POINT_INT8,     MUL,     CONSTANT,     ADD_BCAST,@@ -129,6 +132,7 @@ pub struct Pipelines {     flip_channels: vk::Pipeline,     conv_int8: vk::Pipeline,     conv_point: vk::Pipeline,+    conv_point_int8: vk::Pipeline,     mul: vk::Pipeline,     constant: vk::Pipeline,     add_bcast: vk::Pipeline,@@ -315,6 +319,7 @@ impl Pipelines {             flip_channels,             conv_int8,             conv_point,+            conv_point_int8,             mul,             constant,             add_bcast,@@ -357,6 +362,7 @@ impl Pipelines {             flip_channels,             conv_int8,             conv_point,+            conv_point_int8,             mul,             constant,             add_bcast,@@ -389,6 +395,7 @@ impl Pipelines {             Kind::FlipChannels => self.flip_channels,             Kind::ConvInt8 => self.conv_int8,             Kind::ConvPoint => self.conv_point,+            Kind::ConvPointInt8 => self.conv_point_int8,             Kind::Mul => self.mul,             Kind::Constant => self.constant,             Kind::AddBroadcast => self.add_bcast,@@ -423,6 +430,7 @@ impl Pipelines {             self.flip_channels,             self.conv_int8,             self.conv_point,+            self.conv_point_int8,             self.mul,             self.constant,             self.add_bcast,