Skip to content

Fail early if output engine file path is unwritable in trtexec #4449

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PierreMarieCurie
Copy link

@PierreMarieCurie PierreMarieCurie commented May 19, 2025

Hi NVIDIA team,

This PR adds an early check in trtexec to ensure the --saveEngine path is writable before starting ONNX parsing. It avoids unnecessary compute when the path is invalid. This a proposition to solve issue #4448.

It has only been tested on the following environment: Ubuntu 24.04 running as a Dev Container within WSL2.

Thanks!

@PierreMarieCurie PierreMarieCurie changed the base branch from release/10.11 to release/10.10 May 19, 2025 02:05
@PierreMarieCurie PierreMarieCurie changed the base branch from release/10.10 to release/10.11 May 19, 2025 02:06
@PierreMarieCurie PierreMarieCurie changed the title [WIP] #4448 - Fail early if output engine file path is unwritable in trtexec [WIP] Fail early if output engine file path is unwritable in trtexec May 19, 2025
@PierreMarieCurie PierreMarieCurie changed the title [WIP] Fail early if output engine file path is unwritable in trtexec Fail early if output engine file path is unwritable in trtexec May 19, 2025
@PierreMarieCurie PierreMarieCurie requested a review from a team as a code owner May 20, 2025 22:29
@poweiw
Copy link
Collaborator

poweiw commented Jul 2, 2025

/blossom-ci

@poweiw poweiw added Module:Samples Issues when using TensorRT samples under the samples/ directory, including usage with trtexec triaged Issue has been triaged by maintainers labels Jul 2, 2025
@poweiw
Copy link
Collaborator

poweiw commented Jul 2, 2025

/blossom-ci

1 similar comment
@poweiw
Copy link
Collaborator

poweiw commented Jul 2, 2025

/blossom-ci

@poweiw
Copy link
Collaborator

poweiw commented Jul 2, 2025

Hello @PierreMarieCurie thanks for your contribution! Can you target the main branch and have your commits rebase on that?

@PierreMarieCurie PierreMarieCurie changed the base branch from release/10.11 to main July 3, 2025 22:21
@PierreMarieCurie
Copy link
Author

Hello @poweiw, thanks for your feedback. I've rebased my branch onto main and updated the PR to target it. Let me know if there's anything else you'd like adjusted.

@poweiw
Copy link
Collaborator

poweiw commented Jul 3, 2025

Thanks Pierre for the fast response! I lost my permission to trigger the pipeline but should be able to run next week. Will lyk with the pipeline results.

@poweiw
Copy link
Collaborator

poweiw commented Jul 8, 2025

/blossom-ci

@PierreMarieCurie
Copy link
Author

Hello @poweiw and @kevinch-nv, I messed up my rebase, sorry about that. The target branch was correct, but it was based on an old commit, so the pipeline failed. It should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module:Samples Issues when using TensorRT samples under the samples/ directory, including usage with trtexec triaged Issue has been triaged by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants