Skip to content

Commit cdd70a8

Browse files
dmitrygoazhai219
dmitrygo
authored andcommitted
[FIX] Limit applicability of is_1stconv logic for JIT FP32/BF16 AVX512 Convolution
1 parent 60a8893 commit cdd70a8

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/cpu/x64/jit_avx512_common_conv_kernel.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ inline status_t init_tag(format_tag_t &tag, memory_desc_t &md,
7575
}
7676

7777
inline bool is_1stconv(const jit_conv_conf_t &jcp) {
78-
if (mayiuse(avx512_core))
79-
return (jcp.ic < 16 && jcp.ngroups == 1);
80-
else
81-
return one_of(jcp.ic, 1, 3);
78+
return one_of(jcp.ic, 1, 3);
8279
}
8380

8481
inline bool is_ow_threading_on(const jit_conv_conf_t &jcp) {

src/cpu/x64/jit_avx512_core_bf16_conv_kernel.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ inline bool is_1stconv(const jit_conv_conf_t &jcp) {
9191
* nstl::max(jcp.typesize_in, jcp.typesize_out) * jcp.id
9292
* jcp.ih * jcp.iw
9393
< INT_MAX;
94-
return jcp.ic < 16 && jcp.ngroups == 1 && no_big_offt;
94+
return one_of(jcp.ic, 1, 3) && jcp.ngroups == 1 && no_big_offt;
9595
}
9696
} // namespace
9797

0 commit comments

Comments
 (0)