Debian Codegraph @

src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avx256vnni-prfm.c

raw symbols SCIP
1 // Auto-generated file. Do not edit!
2 // Template: src/x8-packw/kr-avxvnni.c.in
3 // Generator: tools/xngen
4 //
5 // Copyright 2024 Google LLC
6 //
7 // This source code is licensed under the BSD-style license found in the
8 // LICENSE file in the root directory of this source tree.
9
10
11 #include <assert.h>
12 #include <stddef.h>
13 #include <stdint.h>
14
15 #include <immintrin.h>
16
17 #include "xnnpack/packw.h"
18 #include "xnnpack/unaligned.h"
19 #include "xnnpack/prefetch.h"
20
21
22 void xnn_qs8_to_qu8_packw_gemm_goi_ukernel_x8c8__avx256vnni_prfm(
23 size_t g,
24 size_t nc,
25 size_t kc,
26 size_t nr,
27 size_t kr,
28 size_t sr,
29 const int8_t* weights,
30 const int32_t* bias,
31 const void* scale,
32 int8_t* packed_weights,
33 size_t extra_bytes,
34 const void* params) XNN_OOB_READS
35 {
36 assert(g != 0);
37 assert(nc != 0);
38 assert(kc != 0);
39 assert(nr == 8);
40 assert(kr == 8);
41 assert(sr == 1);
42 assert(weights != NULL);
43 assert(packed_weights != NULL);
44
45 int8_t* out = (int8_t*) packed_weights;
46 const int32_t* b = (const int32_t*) bias;
47
48 const __m256i vone = _mm256_set1_epi8(1);
49 const uint32_t izp = (uint32_t) (params ? (((const struct xnn_qs8_packw_params*) params)->input_zero_point + 128): 128);
50 __m256i vzeropoint = _mm256_set1_epi32((int32_t) izp);
51
52 do {
53 // NC main loop multiple of 8
54 const int8_t* w0 = (const int8_t*) weights;
55 size_t n = nc;
56 for (;n >= 8; n -= 8) {
57 int32_t* packed_b = (int32_t*) out;
58 if XNN_LIKELY(b != NULL) {
59 const __m256i vb0 = _mm256_loadu_si256((const __m256i*) (b + 0));
60 _mm256_storeu_si256((__m256i*) (out + 0), vb0);
61 b += 8;
62 } else {
63 _mm256_storeu_si256((__m256i*) (out + 0), _mm256_setzero_si256());
64 }
65 out += 8 * sizeof(int32_t);
66
67 const int8_t* w1 = w0 + kc;
68 const int8_t* w2 = w1 + kc;
69 const int8_t* w3 = w2 + kc;
70 const int8_t* w4 = w3 + kc;
71 const int8_t* w5 = w4 + kc;
72 const int8_t* w6 = w5 + kc;
73 const int8_t* w7 = w6 + kc;
74 xnn_prefetch_to_l1((const int8_t*) w0 + 0);
75 xnn_prefetch_to_l1((const int8_t*) w0 + 64);
76 xnn_prefetch_to_l1((const int8_t*) w0 + 128);
77 xnn_prefetch_to_l1((const int8_t*) w0 + 192);
78 xnn_prefetch_to_l1((const int8_t*) w0 + 256);
79 xnn_prefetch_to_l1((const int8_t*) w0 + 320);
80 xnn_prefetch_to_l1((const int8_t*) w0 + 384);
81 xnn_prefetch_to_l1((const int8_t*) w1 + 0);
82 xnn_prefetch_to_l1((const int8_t*) w1 + 64);
83 xnn_prefetch_to_l1((const int8_t*) w1 + 128);
84 xnn_prefetch_to_l1((const int8_t*) w1 + 192);
85 xnn_prefetch_to_l1((const int8_t*) w1 + 256);
86 xnn_prefetch_to_l1((const int8_t*) w1 + 320);
87 xnn_prefetch_to_l1((const int8_t*) w1 + 384);
88 xnn_prefetch_to_l1((const int8_t*) w2 + 0);
89 xnn_prefetch_to_l1((const int8_t*) w2 + 64);
90 xnn_prefetch_to_l1((const int8_t*) w2 + 128);
91 xnn_prefetch_to_l1((const int8_t*) w2 + 192);
92 xnn_prefetch_to_l1((const int8_t*) w2 + 256);
93 xnn_prefetch_to_l1((const int8_t*) w2 + 320);
94 xnn_prefetch_to_l1((const int8_t*) w2 + 384);
95 xnn_prefetch_to_l1((const int8_t*) w3 + 0);
96 xnn_prefetch_to_l1((const int8_t*) w3 + 64);
97 xnn_prefetch_to_l1((const int8_t*) w3 + 128);
98 xnn_prefetch_to_l1((const int8_t*) w3 + 192);
99 xnn_prefetch_to_l1((const int8_t*) w3 + 256);
100 xnn_prefetch_to_l1((const int8_t*) w3 + 320);
101 xnn_prefetch_to_l1((const int8_t*) w3 + 384);
102 xnn_prefetch_to_l1((const int8_t*) w4 + 0);
103 xnn_prefetch_to_l1((const int8_t*) w4 + 64);
104 xnn_prefetch_to_l1((const int8_t*) w4 + 128);
105 xnn_prefetch_to_l1((const int8_t*) w4 + 192);
106 xnn_prefetch_to_l1((const int8_t*) w4 + 256);
107 xnn_prefetch_to_l1((const int8_t*) w4 + 320);
108 xnn_prefetch_to_l1((const int8_t*) w4 + 384);
109 xnn_prefetch_to_l1((const int8_t*) w5 + 0);
110 xnn_prefetch_to_l1((const int8_t*) w5 + 64);
111 xnn_prefetch_to_l1((const int8_t*) w5 + 128);
112 xnn_prefetch_to_l1((const int8_t*) w5 + 192);
113 xnn_prefetch_to_l1((const int8_t*) w5 + 256);
114 xnn_prefetch_to_l1((const int8_t*) w5 + 320);
115 xnn_prefetch_to_l1((const int8_t*) w5 + 384);
116 xnn_prefetch_to_l1((const int8_t*) w6 + 0);
117 xnn_prefetch_to_l1((const int8_t*) w6 + 64);
118 xnn_prefetch_to_l1((const int8_t*) w6 + 128);
119 xnn_prefetch_to_l1((const int8_t*) w6 + 192);
120 xnn_prefetch_to_l1((const int8_t*) w6 + 256);
121 xnn_prefetch_to_l1((const int8_t*) w6 + 320);
122 xnn_prefetch_to_l1((const int8_t*) w6 + 384);
123 xnn_prefetch_to_l1((const int8_t*) w7 + 0);
124 xnn_prefetch_to_l1((const int8_t*) w7 + 64);
125 xnn_prefetch_to_l1((const int8_t*) w7 + 128);
126 xnn_prefetch_to_l1((const int8_t*) w7 + 192);
127 xnn_prefetch_to_l1((const int8_t*) w7 + 256);
128 xnn_prefetch_to_l1((const int8_t*) w7 + 320);
129 xnn_prefetch_to_l1((const int8_t*) w7 + 384);
130
131 __m256i vacc0 = _mm256_setzero_si256();
132 __m256i vacc4 = _mm256_setzero_si256();
133
134 size_t k = kc;
135 // KC main loop multiple of 8x32
136 for (; k >= 32; k -= 32) {
137 const __m256i v0_0123 = _mm256_loadu_si256((const __m256i*) w0);
138 const __m256i v1_0123 = _mm256_loadu_si256((const __m256i*) w1);
139 const __m256i v2_0123 = _mm256_loadu_si256((const __m256i*) w2);
140 const __m256i v3_0123 = _mm256_loadu_si256((const __m256i*) w3);
141 const __m256i v4_0123 = _mm256_loadu_si256((const __m256i*) w4);
142 const __m256i v5_0123 = _mm256_loadu_si256((const __m256i*) w5);
143 const __m256i v6_0123 = _mm256_loadu_si256((const __m256i*) w6);
144 const __m256i v7_0123 = _mm256_loadu_si256((const __m256i*) w7);
145
146 const __m256i v01_02 = _mm256_unpacklo_epi64(v0_0123, v1_0123);
147 const __m256i v01_13 = _mm256_unpackhi_epi64(v0_0123, v1_0123);
148 const __m256i v23_02 = _mm256_unpacklo_epi64(v2_0123, v3_0123);
149 const __m256i v23_13 = _mm256_unpackhi_epi64(v2_0123, v3_0123);
150 const __m256i v45_02 = _mm256_unpacklo_epi64(v4_0123, v5_0123);
151 const __m256i v45_13 = _mm256_unpackhi_epi64(v4_0123, v5_0123);
152 const __m256i v67_02 = _mm256_unpacklo_epi64(v6_0123, v7_0123);
153 const __m256i v67_13 = _mm256_unpackhi_epi64(v6_0123, v7_0123);
154
155 xnn_prefetch_to_l1((const int8_t*) w0 + 448);
156 xnn_prefetch_to_l1((const int8_t*) w1 + 448);
157 xnn_prefetch_to_l1((const int8_t*) w2 + 448);
158 xnn_prefetch_to_l1((const int8_t*) w3 + 448);
159 xnn_prefetch_to_l1((const int8_t*) w4 + 448);
160 xnn_prefetch_to_l1((const int8_t*) w5 + 448);
161 xnn_prefetch_to_l1((const int8_t*) w6 + 448);
162 xnn_prefetch_to_l1((const int8_t*) w7 + 448);
163
164 const __m256i v0_0 = _mm256_permute2f128_si256(v01_02, v23_02, _MM_SHUFFLE(0, 2, 0, 0));
165 const __m256i v0_1 = _mm256_permute2f128_si256(v01_13, v23_13, _MM_SHUFFLE(0, 2, 0, 0));
166 const __m256i v0_2 = _mm256_permute2f128_si256(v01_02, v23_02, _MM_SHUFFLE(0, 3, 0, 1));
167 const __m256i v0_3 = _mm256_permute2f128_si256(v01_13, v23_13, _MM_SHUFFLE(0, 3, 0, 1));
168 const __m256i v4_0 = _mm256_permute2f128_si256(v45_02, v67_02, _MM_SHUFFLE(0, 2, 0, 0));
169 const __m256i v4_1 = _mm256_permute2f128_si256(v45_13, v67_13, _MM_SHUFFLE(0, 2, 0, 0));
170 const __m256i v4_2 = _mm256_permute2f128_si256(v45_02, v67_02, _MM_SHUFFLE(0, 3, 0, 1));
171 const __m256i v4_3 = _mm256_permute2f128_si256(v45_13, v67_13, _MM_SHUFFLE(0, 3, 0, 1));
172
173 vacc0 = _mm256_dpbusd_epi32(vacc0, vone, v0_0);
174 vacc0 = _mm256_dpbusd_epi32(vacc0, vone, v0_1);
175 vacc0 = _mm256_dpbusd_epi32(vacc0, vone, v0_2);
176 vacc0 = _mm256_dpbusd_epi32(vacc0, vone, v0_3);
177 vacc4 = _mm256_dpbusd_epi32(vacc4, vone, v4_0);
178 vacc4 = _mm256_dpbusd_epi32(vacc4, vone, v4_1);
179 vacc4 = _mm256_dpbusd_epi32(vacc4, vone, v4_2);
180 vacc4 = _mm256_dpbusd_epi32(vacc4, vone, v4_3);
181
182 _mm256_storeu_si256((__m256i *)&out[0], v0_0);
183 _mm256_storeu_si256((__m256i *)&out[32], v4_0);
184 _mm256_storeu_si256((__m256i *)&out[64], v0_1);
185 _mm256_storeu_si256((__m256i *)&out[96], v4_1);
186 _mm256_storeu_si256((__m256i *)&out[128], v0_2);
187 _mm256_storeu_si256((__m256i *)&out[160], v4_2);
188 _mm256_storeu_si256((__m256i *)&out[192], v0_3);
189 _mm256_storeu_si256((__m256i *)&out[224], v4_3);
190
191 w0 += 32;
192 w1 += 32;
193 w2 += 32;
194 w3 += 32;
195 w4 += 32;
196 w5 += 32;
197 w6 += 32;
198 w7 += 32;
199 out += 256;
200 }
201
202 // KC main loop multiple of 8x8
203 for (; k >= 8; k -= 8) {
204 __m256i v0 = _mm256_set1_epi64x((int64_t) unaligned_load_u64(w0));
205 v0 = _mm256_blend_epi32(v0, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w1)), 0x0C);
206 v0 = _mm256_blend_epi32(v0, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w2)), 0x30);
207 v0 = _mm256_blend_epi32(v0, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w3)), 0xC0);
208 __m256i v4 = _mm256_set1_epi64x((int64_t) unaligned_load_u64(w4));
209 v4 = _mm256_blend_epi32(v4, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w5)), 0x0C);
210 v4 = _mm256_blend_epi32(v4, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w6)), 0x30);
211 v4 = _mm256_blend_epi32(v4, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w7)), 0xC0);
212 xnn_prefetch_to_l1((const int8_t*) w0 + 448);
213 xnn_prefetch_to_l1((const int8_t*) w1 + 448);
214 xnn_prefetch_to_l1((const int8_t*) w2 + 448);
215 xnn_prefetch_to_l1((const int8_t*) w3 + 448);
216 xnn_prefetch_to_l1((const int8_t*) w4 + 448);
217 xnn_prefetch_to_l1((const int8_t*) w5 + 448);
218 xnn_prefetch_to_l1((const int8_t*) w6 + 448);
219 xnn_prefetch_to_l1((const int8_t*) w7 + 448);
220
221 vacc0 = _mm256_dpbusd_epi32(vacc0, vone, v0);
222 vacc4 = _mm256_dpbusd_epi32(vacc4, vone, v4);
223
224 _mm256_storeu_si256((__m256i *)&out[0], v0);
225 _mm256_storeu_si256((__m256i *)&out[32], v4);
226
227 w0 += 8;
228 w1 += 8;
229 w2 += 8;
230 w3 += 8;
231 w4 += 8;
232 w5 += 8;
233 w6 += 8;
234 w7 += 8;
235 out += 64;
236 }
237
238 // KC remainder of 1..7
239 if (k != 0) {
240 assert(k >= 1 && k <= 7);
241
242 const __m256i vmask = _mm256_srli_epi64(_mm256_set1_epi32(-1), (8 - k) * sizeof(int8_t) * 8);
243
244 __m256i v0 = _mm256_set1_epi64x((int64_t) unaligned_load_u64(w0));
245 v0 = _mm256_blend_epi32(v0, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w1)), 0x0C);
246 v0 = _mm256_blend_epi32(v0, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w2)), 0x30);
247 v0 = _mm256_blend_epi32(v0, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w3)), 0xC0);
248 v0 = _mm256_and_si256(v0, vmask);
249 __m256i v4 = _mm256_set1_epi64x((int64_t) unaligned_load_u64(w4));
250 v4 = _mm256_blend_epi32(v4, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w5)), 0x0C);
251 v4 = _mm256_blend_epi32(v4, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w6)), 0x30);
252 v4 = _mm256_blend_epi32(v4, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w7)), 0xC0);
253 v4 = _mm256_and_si256(v4, vmask);
254
255 w0 += k;
256 w1 += k;
257 w2 += k;
258 w3 += k;
259 w4 += k;
260 w5 += k;
261 w6 += k;
262 w7 += k;
263
264 vacc0 = _mm256_dpbusd_epi32(vacc0, vone, v0);
265 vacc4 = _mm256_dpbusd_epi32(vacc4, vone, v4);
266
267 _mm256_storeu_si256((__m256i *)&out[0], v0);
268 _mm256_storeu_si256((__m256i *)&out[32], v4);
269
270 out += 64;
271 }
272
273 __m256i vksum0 = _mm256_hadd_epi32(vacc0, vacc4);
274 vksum0 = _mm256_permute4x64_epi64(vksum0, _MM_SHUFFLE(3, 1, 2, 0));
275 vksum0 = _mm256_mullo_epi32(vksum0, vzeropoint);
276 __m256i vpack0 = _mm256_loadu_si256((const __m256i*) (packed_b + 0));
277 vpack0 = _mm256_sub_epi32(vpack0, vksum0);
278 _mm256_storeu_si256((__m256i *) (packed_b + 0), vpack0);
279 out = (int8_t*) ((uintptr_t) out + extra_bytes);
280 w0 = w7;
281 }
282
283 // NC remainder (1..7)
284 if XNN_UNLIKELY(n != 0) {
285 assert(n >= 1 && n <= 7);
286
287 int32_t* packed_b = (int32_t*) out;
288 if XNN_LIKELY(b != NULL) {
289 size_t nb = n;
290 do {
291 *((int32_t*) out) = *b++;
292 out += sizeof(int32_t);
293 } while (--nb != 0);
294 } else {
295 size_t nb = n;
296 do {
297 *((int32_t*) out) = 0;
298 out += sizeof(int32_t);
299 } while (--nb != 0);
300 }
301 out += (8 - n) * sizeof(int32_t);
302
303 const int8_t* w1 = w0 + kc;
304 if XNN_UNPREDICTABLE(n < 2) {
305 w1 = w0;
306 }
307 const int8_t* w2 = w1 + kc;
308 if XNN_UNPREDICTABLE(n <= 2) {
309 w2 = w1;
310 }
311 const int8_t* w3 = w2 + kc;
312 if XNN_UNPREDICTABLE(n < 4) {
313 w3 = w2;
314 }
315 const int8_t* w4 = w3 + kc;
316 if XNN_UNPREDICTABLE(n <= 4) {
317 w4 = w3;
318 }
319 const int8_t* w5 = w4 + kc;
320 if XNN_UNPREDICTABLE(n < 6) {
321 w5 = w4;
322 }
323 const int8_t* w6 = w5 + kc;
324 if XNN_UNPREDICTABLE(n <= 6) {
325 w6 = w5;
326 }
327 const int8_t* w7 = w6 + kc;
328 if XNN_UNPREDICTABLE(n < 8) {
329 w7 = w6;
330 }
331 xnn_prefetch_to_l1((const int8_t*) w0);
332 xnn_prefetch_to_l1((const int8_t*) w0 + 64);
333 xnn_prefetch_to_l1((const int8_t*) w1);
334 xnn_prefetch_to_l1((const int8_t*) w1 + 64);
335 xnn_prefetch_to_l1((const int8_t*) w2);
336 xnn_prefetch_to_l1((const int8_t*) w2 + 64);
337 xnn_prefetch_to_l1((const int8_t*) w3);
338 xnn_prefetch_to_l1((const int8_t*) w3 + 64);
339 xnn_prefetch_to_l1((const int8_t*) w4);
340 xnn_prefetch_to_l1((const int8_t*) w4 + 64);
341 xnn_prefetch_to_l1((const int8_t*) w5);
342 xnn_prefetch_to_l1((const int8_t*) w5 + 64);
343 xnn_prefetch_to_l1((const int8_t*) w6);
344 xnn_prefetch_to_l1((const int8_t*) w6 + 64);
345 xnn_prefetch_to_l1((const int8_t*) w7);
346 xnn_prefetch_to_l1((const int8_t*) w7 + 64);
347
348 __m256i vacc0 = _mm256_setzero_si256();
349 __m256i vacc4 = _mm256_setzero_si256();
350
351 // KC main loop multiple of 8x8
352 size_t k = kc;
353 for (; k >= 8; k -= 8) {
354 __m256i v0 = _mm256_set1_epi64x((int64_t) unaligned_load_u64(w0));
355 v0 = _mm256_blend_epi32(v0, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w1)), 0x0C);
356 v0 = _mm256_blend_epi32(v0, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w2)), 0x30);
357 v0 = _mm256_blend_epi32(v0, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w3)), 0xC0);
358 __m256i v4 = _mm256_set1_epi64x((int64_t) unaligned_load_u64(w4));
359 v4 = _mm256_blend_epi32(v4, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w5)), 0x0C);
360 v4 = _mm256_blend_epi32(v4, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w6)), 0x30);
361 v4 = _mm256_blend_epi32(v4, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w7)), 0xC0);
362 xnn_prefetch_to_l1((const int8_t*) w0 + 448);
363 xnn_prefetch_to_l1((const int8_t*) w1 + 448);
364 xnn_prefetch_to_l1((const int8_t*) w2 + 448);
365 xnn_prefetch_to_l1((const int8_t*) w3 + 448);
366 xnn_prefetch_to_l1((const int8_t*) w4 + 448);
367 xnn_prefetch_to_l1((const int8_t*) w5 + 448);
368 xnn_prefetch_to_l1((const int8_t*) w6 + 448);
369 xnn_prefetch_to_l1((const int8_t*) w7 + 448);
370
371 vacc0 = _mm256_dpbusd_epi32(vacc0, vone, v0);
372 vacc4 = _mm256_dpbusd_epi32(vacc4, vone, v4);
373
374 _mm256_storeu_si256((__m256i *)&out[0], v0);
375 _mm256_storeu_si256((__m256i *)&out[32], v4);
376
377 w0 += 8;
378 w1 += 8;
379 w2 += 8;
380 w3 += 8;
381 w4 += 8;
382 w5 += 8;
383 w6 += 8;
384 w7 += 8;
385 out += 64;
386 }
387
388 // KC remainder of 1..7
389 if (k != 0) {
390 assert(k >= 1 && k <= 7);
391
392 const __m256i vmask = _mm256_srli_epi64(_mm256_set1_epi32(-1), (8 - k) * sizeof(int8_t) * 8);
393
394 __m256i v0 = _mm256_set1_epi64x((int64_t) unaligned_load_u64(w0));
395 v0 = _mm256_blend_epi32(v0, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w1)), 0x0C);
396 v0 = _mm256_blend_epi32(v0, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w2)), 0x30);
397 v0 = _mm256_blend_epi32(v0, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w3)), 0xC0);
398 v0 = _mm256_and_si256(v0, vmask);
399 __m256i v4 = _mm256_set1_epi64x((int64_t) unaligned_load_u64(w4));
400 v4 = _mm256_blend_epi32(v4, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w5)), 0x0C);
401 v4 = _mm256_blend_epi32(v4, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w6)), 0x30);
402 v4 = _mm256_blend_epi32(v4, _mm256_set1_epi64x((int64_t) unaligned_load_u64(w7)), 0xC0);
403 v4 = _mm256_and_si256(v4, vmask);
404
405 w0 += k;
406 w1 += k;
407 w2 += k;
408 w3 += k;
409 w4 += k;
410 w5 += k;
411 w6 += k;
412 w7 += k;
413
414 vacc0 = _mm256_dpbusd_epi32(vacc0, vone, v0);
415 vacc4 = _mm256_dpbusd_epi32(vacc4, vone, v4);
416
417 _mm256_storeu_si256((__m256i *)&out[0], v0);
418 _mm256_storeu_si256((__m256i *)&out[32], v4);
419
420 out += 64;
421 }
422
423 __m256i vksum0 = _mm256_hadd_epi32(vacc0, vacc4);
424 vksum0 = _mm256_permute4x64_epi64(vksum0, _MM_SHUFFLE(3, 1, 2, 0));
425 vksum0 = _mm256_mullo_epi32(vksum0, vzeropoint);
426 __m256i vpack0 = _mm256_loadu_si256((const __m256i*) (packed_b + 0));
427 vpack0 = _mm256_sub_epi32(vpack0, vksum0);
428 _mm256_storeu_si256((__m256i *) (packed_b + 0), vpack0);
429 out = (int8_t*) ((uintptr_t) out + extra_bytes);
430 }
431
432 weights += nc * kc;
433 } while (--g != 0);
434 }