Skip to content

Commit

Permalink
[FORK][FIX] Fixed debug assert in jit_io_helper_t
Browse files Browse the repository at this point in the history
[FORK][FEATURE] Enable avx2 jit reorder for bf16 data type
  • Loading branch information
dmitry-gorokhov committed Aug 29, 2024
1 parent c8ae8d9 commit aa986d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpu/x64/utils/jit_io_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,8 @@ bool jit_io_helper_t<Vmm>::is_data_type_supported(const data_type_t dt) {
case data_type::u8:
case data_type::s8: return true;
case data_type::bf16:
return is_superset(isa_, avx512_core) || isa_ == avx2_vnni_2;
case data_type::f16:
return is_superset(isa_, avx512_core_fp16) || isa_ == avx2_vnni_2;
return is_superset(isa_, avx2);
case data_type::f8_e4m3:
case data_type::f8_e5m2: return is_superset(isa_, avx512_core_amx);
default: assert(!"Unsupported data type");
Expand Down Expand Up @@ -837,6 +836,7 @@ void jit_io_helper_t<Vmm>::store_bf16(
assert(bf16_supported_ && "Unsupported data type.");
assert((src_vmm.isZMM() || src_vmm.isYMM())
&& "Store operation for bf16 is not supported for Xmms.");
assert(is_superset(isa_, avx512_core) || isa_ == avx2_vnni_2);

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

0 comments on commit aa986d8

Please sign in to comment.