Skip to content

Commit

Permalink
tests: benchdnn: restrict dst scales to common for cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
kealan-barbieri committed Dec 13, 2024
1 parent dec5a07 commit 8aa5c64
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/benchdnn/matmul/matmul.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,17 @@ void skip_unimplemented_prb(const prb_t *prb, res_t *res) {
res->reason = skip_reason::case_not_supported;
return;
}
if (!prb->attr.scales.is_def(DNNL_ARG_DST)
&& prb->attr.scales.get(DNNL_ARG_DST).policy
!= attr_t::COMMON) {
BENCHDNN_PRINT(2,
"[SKIP][%s:%d]: Only Common dst scales are supported "
"on CPU.\n",
__FILE__, __LINE__);
res->state = SKIPPED;
res->reason = skip_reason::case_not_supported;
return;
}
}

if (is_gpu()) {
Expand Down

0 comments on commit 8aa5c64

Please sign in to comment.