Skip to content

Commit 5ae66a1

Browse files
dmitry-gorokhovxczhai
authored andcommitted
[FORK][FIX] Fixed debug assert in jit_io_helper_t
[FORK][FEATURE] Enable avx2 jit reorder for bf16 data type
1 parent aae0937 commit 5ae66a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cpu/x64/utils/jit_io_helper.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,8 @@ bool jit_io_helper_t<Vmm>::is_data_type_supported(const data_type_t dt) {
202202
case data_type::u8:
203203
case data_type::s8: return true;
204204
case data_type::bf16:
205-
return is_superset(isa_, avx512_core) || isa_ == avx2_vnni_2;
206205
case data_type::f16:
207-
return is_superset(isa_, avx512_core_fp16) || isa_ == avx2_vnni_2;
206+
return is_superset(isa_, avx2);
208207
case data_type::f8_e4m3:
209208
case data_type::f8_e5m2: return is_superset(isa_, avx512_core_amx);
210209
default: assert(!"Unsupported data type");
@@ -837,6 +836,7 @@ void jit_io_helper_t<Vmm>::store_bf16(
837836
assert(bf16_supported_ && "Unsupported data type.");
838837
assert((src_vmm.isZMM() || src_vmm.isYMM())
839838
&& "Store operation for bf16 is not supported for Xmms.");
839+
assert(is_superset(isa_, avx512_core) || isa_ == avx2_vnni_2);
840840

841841
const auto &cvt_lower_vmm =
842842
typename vreg_traits<Vmm>::Vmm_lower_t(src_vmm.getIdx());

0 commit comments

Comments
 (0)