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

fix: ignore compute_cap if not present #1866

Merged
merged 3 commits into from
Jan 17, 2025
Merged

fix: ignore compute_cap if not present #1866

merged 3 commits into from
Jan 17, 2025

Conversation

vansangpfiev
Copy link
Contributor

Describe Your Changes

This pull request includes several changes to improve GPU information retrieval and handling in the system utilities. The most important changes include modifying the GPU UUID matching logic, adding a fallback mechanism for GPU queries, and updating regex patterns accordingly.

Improvements to GPU information retrieval:

Fallback mechanism for GPU queries:

  • engine/utils/system_info_utils.cc: Added a fallback mechanism to handle cases where the primary GPU query command does not return NVIDIA GPUs. This includes setting a need_fallback flag and executing a fallback command if necessary.
  • engine/utils/system_info_utils.cc: Updated the regex pattern selection and the way GPU information is extracted based on whether the fallback mechanism is used.

Updates to regex patterns and commands:

  • engine/utils/system_info_utils.h: Added new constants kGpuQueryCommandFb and kGpuInfoRegexFb for the fallback GPU query command and its corresponding regex pattern.

Fixes Issues

  • Closes #
  • Closes #

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@vansangpfiev vansangpfiev enabled auto-merge (squash) January 16, 2025 08:29
@vansangpfiev vansangpfiev merged commit 68094d9 into dev Jan 17, 2025
6 checks passed
@vansangpfiev vansangpfiev deleted the fix/cuda-11 branch January 17, 2025 02:51
vansangpfiev added a commit that referenced this pull request Feb 4, 2025
* fix: ignore compute_cap if not present

* fix: correct gpu info

* fix: remove check for toolkit version

---------

Co-authored-by: vansangpfiev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants