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 2 commits into
base: release/10.11
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant