Skip to content

Commit

Permalink
cpu: x64: ukernel: transform: add incorrect ldb check
Browse files Browse the repository at this point in the history
This fixes #2414
  • Loading branch information
dzarukin committed Jan 29, 2025
1 parent 00ba394 commit 3a08866
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cpu/x64/brgemm/capi/brgemm_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,8 @@ status_t dnnl_transform_create(transform_t **transform, dim_t K, dim_t N,
pack_type_t in_pack_type, dim_t in_ld, dim_t out_ld, data_type_t in_dt,
data_type_t out_dt) {
if (transform == nullptr) return status::invalid_arguments;
VCHECK_BRGEMM(utils::one_of(out_ld, 16, 32, 48, 64),
"Transform routine supports only \'out_ld\' of 16, 32, 48, or 64.");

*transform
= new transform_t(K, N, in_pack_type, in_ld, out_ld, in_dt, out_dt);
Expand Down

0 comments on commit 3a08866

Please sign in to comment.