Skip to content
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

Add sys.executable to ncu command #2275

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

Conversation

davidberard98
Copy link
Contributor

Previously, the ncu option would exit with code 255 for me:

python run_benchmark.py triton --op int4_gemm --metrics ncu_trace

For me, adding the python executable path into the command fixed this.

Previously, the ncu option would exit with code 255 for me:
```
python run_benchmark.py triton --op int4_gemm --metrics ncu_trace
```

For me, adding the python executable path into the command fixed this.
@@ -817,7 +817,7 @@ def ncu_trace(self, input_id: int, fn_name: str, replay: bool=False) -> str:
import subprocess
from pathlib import Path

op_task_args = copy.deepcopy(sys.argv)
op_task_args = [sys.executable] + copy.deepcopy(sys.argv)
Copy link
Contributor

Choose a reason for hiding this comment

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

This might not work for fbcode command. Can you please test this using buck run?

@facebook-github-bot
Copy link
Contributor

@davidberard98 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants