Skip to content

Commit

Permalink
tests: gtests, benchdnn: reduction: disable gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsafo committed Sep 11, 2020
1 parent 832f995 commit c61002a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/benchdnn/reduction/reduction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ void check_known_skipped_case(const prb_t *prb, res_t *res) {
check_known_skipped_case_common({prb->sdt, prb->ddt}, FWD_D, res);
if (res->state == SKIPPED) return;

if (engine_tgt_kind != dnnl_cpu) {
res->state = SKIPPED, res->reason = CASE_NOT_SUPPORTED;
return;
}

bool is_invalid = false;
switch (prb->alg) {
case alg_t::MEAN:
Expand Down
2 changes: 2 additions & 0 deletions tests/gtests/test_reduction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class reduction_test_t

SKIP_IF(unsupported_data_type(src_dt),
"Engine does not support this data type.");
SKIP_IF(get_test_engine().get_kind() != engine::kind::cpu,
"Engine does not support this primitive.");

catch_expected_failures(
[=]() { Test(); }, p.expect_to_fail, p.expected_status);
Expand Down

0 comments on commit c61002a

Please sign in to comment.