NVIDIA / NVIDIA/TensorRT

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

Open
#4,448 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request Module:Samples triaged
Dominant language
C++
Stars
13.4k
Forks
2.4k
Avg merge
5d 3h
Merged PRs (30d)
2

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the trtexec entry point and reproduce with the provided command using an invalid --saveEngine path. Done means trtexec rejects an invalid or unwritable engine path before parsing the ONNX model or building the engine; review pull request #4449 for the work already proposed.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.