Skip to content

trtexec fails at the end if --saveEngine path is invalid or unwritable #4448

@PierreMarieCurie

Description

@PierreMarieCurie

Description

When running trtexec with the --saveEngine flag pointing to an invalid or unwritable path, the tool proceeds to parse the ONNX model and build the engine. However, it only fails at the very end when attempting to serialize the engine, wasting time and resources.

This issue is created to introduce the following pull request: #4449

Environment

This issue should occur regardless of the system configuration.

Steps To Reproduce

trtexec --onnx=model.onnx --saveEngine=/invalid_path/engine.trt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestRequest for new functionalityModule:SamplesIssues when using TensorRT samples under the samples/ directory, including usage with trtexectriagedIssue has been triaged by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions