Skip to content

[Coverity] Throw from destructor of ur_device_handle_t in UR CUDA adapter #19500

@AlexeySachkov

Description

@AlexeySachkov

See Coverity issues at https://scan.coverity.com/projects/intel-llvm?tab=overview

CID: 517724 - all destructors are implicitly nothrow, but UR_CHECK_ERROR throws on error.

The question is, do we really need to check for the error here? If so, is it expected that it would cause std::terminate to be called?

UR_CHECK_ERROR(nvmlShutdown());

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions