-
Notifications
You must be signed in to change notification settings - Fork 1
remotingfrontend/virtgpu: give more time to load the libraries and log a warning on failure #2
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
Conversation
…g a warning on failure
🧙 Sourcery has finished reviewing your pull request! Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Caution Review failedThe pull request is closed. WalkthroughThe changes increase the maximum wait time for a remote call response in the virtual GPU frontend and add a warning log message when a timeout occurs in the remote call function. No changes were made to public interfaces or exported declarations. Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @kpouget - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `ggml/src/ggml-remotingfrontend/virtgpu.cpp:497` </location>
<code_context>
os_time_sleep(base_sleep_us);
total_us += base_sleep_us;
if (max_us && total_us > max_us) {
+ WARNING("%s: timed out waiting for the API remoting answer...", __func__);
return NULL;
}
</code_context>
<issue_to_address>
Consider including more context in the timeout warning.
Including the total wait time or relevant parameters in the warning would make it more useful for debugging and monitoring.
</issue_to_address>
<suggested_fix>
<<<<<<< SEARCH
WARNING("%s: timed out waiting for the API remoting answer...", __func__);
=======
WARNING("%s: timed out waiting for the API remoting answer after %" PRIu64 " us (max_us=%" PRIu64 ")", __func__, total_us, max_us);
>>>>>>> REPLACE
</suggested_fix>
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
os_time_sleep(base_sleep_us); | ||
total_us += base_sleep_us; | ||
if (max_us && total_us > max_us) { | ||
WARNING("%s: timed out waiting for the API remoting answer...", __func__); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Consider including more context in the timeout warning.
Including the total wait time or relevant parameters in the warning would make it more useful for debugging and monitoring.
WARNING("%s: timed out waiting for the API remoting answer...", __func__); | |
WARNING("%s: timed out waiting for the API remoting answer after %" PRIu64 " us (max_us=%" PRIu64 ")", __func__, total_us, max_us); |
…
Summary by Sourcery
Give the virtgpu remoting frontend more time to initialize API libraries and emit a warning on timeout rather than triggering a fatal error.
Enhancements:
Summary by CodeRabbit