-
Notifications
You must be signed in to change notification settings - Fork 14
[Benchmark] Add initial TritonBench integration and vector_add benchmark example #242
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
base: gh/yf225/5/base
Are you sure you want to change the base?
Conversation
benchmark/run.py
Outdated
# Add to path | ||
if tritonbench_path not in sys.path: | ||
sys.path.insert(0, tritonbench_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modifying the path is a bit hacky. Could we do pip install git+https://github.com/pytorch-labs/tritonbench.git
or (cd tritonbench && pip install -e .)
? (If the git one works we wont need a submodule.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found that tritonbench needs custom installation of dependencies via python install.py
which is not run when doing pip install
. Currently I removed the submodule but do a git clone
within the run.py file so that we can cd into the folder to be able to run install.py (but would be curious for other cleaner approaches too)
Stack from ghstack (oldest at bottom):
Support running Helion benchmark via a single-line command:
python benchmark/run.py --metrics speedup,accuracy --kernel vector_add
Thanks @xuzhao9 for help with authoring pytorch-labs/tritonbench@09b42e8 and also reviewing pytorch-labs/tritonbench@2237731, which are dependencies for this PR.