Skip to content

Commit 046669e

Browse files
committed
Fix test-backend-ops for OV GPU
1 parent 240692b commit 046669e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ggml/src/ggml-openvino/ggml-openvino.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,10 @@ static bool ggml_backend_openvino_device_supports_op(ggml_backend_dev_t dev, con
963963
// ggml_glu_op_name(ggml_get_glu_op(op)));
964964
return false;
965965
}
966+
if (op->src[1] == nullptr && op->src[0]->ne[0] % 2 != 0) {
967+
// triggers bug in ov gpu
968+
return false;
969+
}
966970
break;
967971
}
968972
default: {

ggml/src/ggml-openvino/utils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ enum ggml_status naive_compute(ggml_cgraph * cgraph,
468468

469469
ov::InferRequest infer_request;
470470
auto remote_context = ggml_openvino_get_remote_context();
471+
core.set_property(device, ov::hint::execution_mode(ov::hint::ExecutionMode::ACCURACY));
471472
if (remote_context.has_value()) {
472473
infer_request = core.compile_model(model, remote_context.value(), config).create_infer_request();
473474
} else {

0 commit comments

Comments
 (0)