Skip to content

Python: preserve target script arguments in the profiling CLI - #181

Open
codewithfourtix wants to merge 2 commits into
NVIDIA:devfrom
codewithfourtix:fix-python-profiler-script-arguments
Open

codewithfourtix wants to merge 2 commits into
NVIDIA:devfrom
codewithfourtix:fix-python-profiler-script-arguments

Conversation

@codewithfourtix

Copy link
Copy Markdown

python -m nvtx train.py --batch-size 32 currently rejects the script's options, while --help or --no-linenos are consumed by NVTX. Stop parsing profiler options at the script path so the target receives its arguments unchanged.

Validation: focused CLI tests pass for unknown flags, colliding flags, --help, --, and profiler options before the script. The four forwarding cases fail on the original code. Native profiler mocked; full native suite not run.

Signed-off-by: Ali Zulfiqar <169186637+codewithfourtix@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 2, 2026 04:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Signed-off-by: Ali Zulfiqar <169186637+codewithfourtix@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

2 participants