Skip to content

Commit f5c0afe

Browse files
committed
src: cpu: matmul: bf16, int8: workaround for gcc build with std c++14
1 parent 5155560 commit f5c0afe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cpu/matmul/gemm_bf16_matmul.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ status_t gemm_bf16_matmul_t<dst_type>::execute_ref(
195195

196196
const bool parallel_over_batch = batch > 1;
197197
if (parallel_over_batch) {
198-
parallel(parallel_over_batch ? 0 : 1, [&](int ithr, int nthr) {
198+
parallel(parallel_over_batch ? 0 : 1, [=](int ithr, int nthr) {
199199
size_t batch_start {}, batch_end {};
200200
balance211((size_t)(batch), nthr, ithr, batch_start, batch_end);
201201

src/cpu/matmul/gemm_x8s8s32x_matmul.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ status_t gemm_x8s8s32x_matmul_t<src_type, weights_type, dst_type>::execute_ref(
225225

226226
const bool parallel_over_batch = batch > 1;
227227
if (parallel_over_batch) {
228-
parallel(parallel_over_batch ? 0 : 1, [&](int ithr, int nthr) {
228+
parallel(parallel_over_batch ? 0 : 1, [=](int ithr, int nthr) {
229229
size_t batch_start {}, batch_end {};
230230
balance211((size_t)(batch), nthr, ithr, batch_start, batch_end);
231231

0 commit comments

Comments
 (0)