Skip to content

Use the correct return status in DOCA_LOG#10

Closed
YconquestY wants to merge 1 commit into
NVIDIA-DOCA:mainfrom
YconquestY:typo
Closed

Use the correct return status in DOCA_LOG#10
YconquestY wants to merge 1 commit into
NVIDIA-DOCA:mainfrom
YconquestY:typo

Conversation

@YconquestY

Copy link
Copy Markdown

Use res_cuda rather than res_drv

Copilot AI review requested due to automatic review settings July 14, 2026 07:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an incorrect return-code being logged in doca_gpu_create() when cudaDeviceGetByPCIBusId() fails, ensuring the log reflects the CUDA runtime API status (res_cuda) rather than an unrelated driver API status (res_drv).

Changes:

  • Update the DOCA_LOG error message to print res_cuda for the invalid GPU bus ID path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@e-ago

e-ago commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Applied, thanks!

0c01778

@e-ago e-ago closed this Jul 17, 2026
@YconquestY
YconquestY deleted the typo branch July 20, 2026 03:18
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