Skip to content

Commit 5ef631a

Browse files
pinzhenxigorsafo
authored andcommitted
build: workaround gcc internal error
mkl-dnn/src/cpu/x64/jit_avx512_core_amx_1x1_convolution.cpp:151:28: internal compiler error: in maybe_undo_parenthesized_ref, at cp/semantics.c:1705 size_t dst_offset = (is_1d) ? dst_d.blk_off(mb, oc, ow) ^~~~~~~~~~
1 parent 4c05c18 commit 5ef631a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/cpu/x64/jit_avx512_core_amx_1x1_convolution.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@ void jit_avx512_core_amx_1x1_convolution_fwd_t<src_type, wei_type,
148148
int osb_i = osi + osb;
149149
int oh = (osb_i * jcp.tile_width) / jcp.ow;
150150
int ow = (osb_i * jcp.tile_width) % jcp.ow;
151-
size_t dst_offset = (is_1d) ? dst_d.blk_off(mb, oc, ow)
152-
: dst_d.blk_off(mb, oc, oh, ow);
151+
size_t dst_offset = is_1d ? dst_d.blk_off(mb, oc, ow)
152+
: dst_d.blk_off(mb, oc, oh, ow);
153153
p.dst = dst + dst_dt_size * dst_offset;
154154

155155
int ih = oh * jcp.stride_h;
156156
int iw = ow * jcp.stride_w;
157-
size_t inp_offset = (is_1d) ? src_d.blk_off(mb, ic, iw)
158-
: src_d.blk_off(mb, ic, ih, iw);
157+
size_t inp_offset = is_1d ? src_d.blk_off(mb, ic, iw)
158+
: src_d.blk_off(mb, ic, ih, iw);
159159
p.src = src + src_dt_size * inp_offset;
160160

161161
bool l_overflow = osb_i + jcp.nb_os_blocking >= nb_os;
@@ -167,14 +167,14 @@ void jit_avx512_core_amx_1x1_convolution_fwd_t<src_type, wei_type,
167167
} else {
168168
int oh = (osb * jcp.tile_width) / jcp.ow;
169169
int ow = (osb * jcp.tile_width) % jcp.ow;
170-
size_t dst_offset = (is_1d) ? dst_d.blk_off(mb, oc, ow)
171-
: dst_d.blk_off(mb, oc, oh, ow);
170+
size_t dst_offset = is_1d ? dst_d.blk_off(mb, oc, ow)
171+
: dst_d.blk_off(mb, oc, oh, ow);
172172
p.dst = dst + dst_dt_size * dst_offset;
173173

174174
int ih = oh * jcp.stride_h;
175175
int iw = ow * jcp.stride_w;
176-
size_t inp_offset = (is_1d) ? src_d.blk_off(mb, ic, iw)
177-
: src_d.blk_off(mb, ic, ih, iw);
176+
size_t inp_offset = is_1d ? src_d.blk_off(mb, ic, iw)
177+
: src_d.blk_off(mb, ic, ih, iw);
178178
p.src = src + src_dt_size * inp_offset;
179179

180180
p.last_h = 0;

0 commit comments

Comments
 (0)