-
Notifications
You must be signed in to change notification settings - Fork 605
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
Make the custom nvJPEG allocator not throw and return only the status #2443
Conversation
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
!build |
CI MESSAGE: [1770676]: BUILD STARTED |
CI MESSAGE: [1770676]: BUILD PASSED |
} catch (...) { | ||
*ptr = nullptr; | ||
return cudaErrorMemoryAllocation; |
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.
I don't think we should at least try to return a meaningful status
} catch (...) { | |
*ptr = nullptr; | |
return cudaErrorMemoryAllocation; | |
} catch (const CUDABadAlloc &) { | |
*ptr = nullptr; | |
return cudaErrorMemoryAllocation; | |
} catch (const CUDAError &e) { | |
*ptr = nullptr; | |
return e.is_rt_api() ? e.rt_error() : cudaErrorUnknown; | |
} catch (const std::exception &e) { | |
// print? should we catch it at all? | |
*ptr = nullptr; | |
return cudaErrorUnknown; | |
} catch (...) { | |
// Now that's really heavy stuff - print something? | |
// Should we really catch it? | |
*ptr = nullptr; | |
return cudaErrorUnknown; | |
} |
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.
Done
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
!build |
CI MESSAGE: [1775029]: BUILD STARTED |
CI MESSAGE: [1775029]: BUILD PASSED |
Signed-off-by: Janusz Lisiecki jlisiecki@nvidia.com
Why we need this PR?
Pick one, remove the rest
What happened in this PR?
Fill relevant points, put NA otherwise. Replace anything inside []
make the custom nvJPEG allocator not throw and return only the status
nvJPEG based decoder
NA
CI
NA
JIRA TASK: [Use DALI-1721]