Skip to content

Commit 6817bce

Browse files
gyhintelTaoLv
authored andcommitted
benchdnn: graph: remove GenIndex as unimplemented_ops_gpu
1 parent 9132b4a commit 6817bce

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

tests/benchdnn/graph/graph.cpp

+1-19
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,7 @@ void skip_unimplemented_ops(const dnnl::graph::partition &partition,
416416

417417
// A list of ops that don't have DNNL backend support so far.
418418
static const std::vector<std::string> unimplemented_ops {"Pow"};
419-
// A list of ops that don't have DNNL backend support so far on GPU.
420-
static const std::vector<std::string> unimplemented_ops_gpu {"GenIndex"};
421-
const auto &eng = get_graph_engine();
422-
bool is_gpu = eng.get_kind() == dnnl::engine::kind::gpu;
419+
423420
// For an unsupported partition, retrieve all operation IDs, find a
424421
// correspondent operation kind in a deserialized_graph_t and match it against
425422
// a list of known unsupported ops.
@@ -438,21 +435,6 @@ void skip_unimplemented_ops(const dnnl::graph::partition &partition,
438435
res->reason = skip_reason::case_not_supported;
439436
return;
440437
}
441-
442-
if (is_gpu) {
443-
const bool has_unimplemented_op_gpu = std::any_of(
444-
unimplemented_ops_gpu.begin(), unimplemented_ops_gpu.end(),
445-
[&dg_op_kind](const std::string &kind) {
446-
return dg_op_kind == kind;
447-
});
448-
if (has_unimplemented_op_gpu) {
449-
BENCHDNN_PRINT(2, "[INFO]: Unimplemented op on GPU: %s.\n",
450-
dg_op_kind.c_str());
451-
res->state = SKIPPED;
452-
res->reason = skip_reason::case_not_supported;
453-
return;
454-
}
455-
}
456438
}
457439
}
458440

0 commit comments

Comments
 (0)