Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support of ov::Busy and ov::Cancelled in C API #22034

Merged

Conversation

vurusovs
Copy link
Contributor

@vurusovs vurusovs commented Jan 9, 2024

No description provided.

@vurusovs vurusovs requested a review from a team as a code owner January 9, 2024 08:04
@github-actions github-actions bot added the category: C API OpenVINO C API bindings label Jan 9, 2024
@@ -341,6 +341,15 @@ TEST_P(ov_infer_request_test, infer_async_wait_for) {
}
}

TEST_P(ov_infer_request_test, infer_async_wait_for_return_busy) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@riverlijunjie please, advice how to add test for ov::Cancelled - default test model is too small, and inference finishes earlier than cancel may be called

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can create a model with custom operation which sleeps for 500ms during its evaluate method

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we try to create multiple inferReqs to start_async() with single stream/thread and cancel them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@vurusovs vurusovs force-pushed the vu/c_busy_cancel_statuses branch 2 times, most recently from 70a8061 to ed07cfa Compare January 9, 2024 11:53
@vurusovs vurusovs requested a review from a team as a code owner January 9, 2024 11:53
@github-actions github-actions bot added the category: inference OpenVINO Runtime library - Inference label Jan 9, 2024
@vurusovs vurusovs force-pushed the vu/c_busy_cancel_statuses branch from ed07cfa to 2534600 Compare January 9, 2024 17:58
@ilya-lavrenov ilya-lavrenov enabled auto-merge (squash) January 10, 2024 06:15
@ilya-lavrenov ilya-lavrenov merged commit 3d62726 into openvinotoolkit:master Jan 10, 2024
96 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: C API OpenVINO C API bindings category: inference OpenVINO Runtime library - Inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants