Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Issue #4612 - add checks for error return types#4613

Open
grolysaini wants to merge 2 commits into
NVIDIA:mainNVIDIA/TensorRT:mainfrom
grolysaini:maingrolysaini/TensorRT:mainCopy head branch name to clipboard
Open

Issue #4612 - add checks for error return types#4613
grolysaini wants to merge 2 commits into
NVIDIA:mainNVIDIA/TensorRT:mainfrom
grolysaini:maingrolysaini/TensorRT:mainCopy head branch name to clipboard

Conversation

@grolysaini

Copy link
Copy Markdown

cudart.cudaMemcpyAsync and cudart.cudaStreamSynchronize return a tuple which leads to AttributeError as cudart.cudaGetErrorString(err) expects a cudaError_t. This is solved by adding type check before passing it to the raise function.

@grolysaini
grolysaini requested a review from a team as a code owner November 1, 2025 14:58
MrGeva and others added 2 commits November 1, 2025 16:11
Signed-off-by: Eran Geva <19514940+MrGeva@users.noreply.github.com>
Signed-off-by: Gr0ly <charanjit.singh@dstream.de>
cudart.cudaMemcpyAsync and cudart.cudaStreamSynchronize return a tuple
which leads to AttributeError as cudart.cudaGetErrorString(err) expects
a cudaError_t. This is solved by adding type check before passing it to
the raise function.

Signed-off-by: Gr0ly <charanjit.singh@dstream.de>
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.