Skip to content

Conversation

@LeiWang1999
Copy link
Contributor

@LeiWang1999 LeiWang1999 commented Jul 23, 2024

This pull request includes several changes to improve the performance and reliability of the benchmarking process, as well as to simplify the codebase. The most significant changes include updating the GitHub Actions workflow file .github/workflows/benchmark.yml to better handle commit IDs, modifying the benchmarking script benchmark/operators/benchmark_ops_matmul.py to include additional test cases and refactor repetitive code, and enhancing error handling in benchmark/operators/compare_benchmark.py.

GitHub Actions workflow improvements:

  • .github/workflows/benchmark.yml: Renamed the benchmark job to benchmark_base and added a new benchmark_compare job to compare benchmark results between different commits. Also, changed the way commit IDs are handled, storing them in text files and uploading them as artifacts instead of using environment variables. [1] [2] [3] [4]

Benchmarking script enhancements:

  • benchmark/operators/benchmark_ops_matmul.py: Added new test cases and refactored the prepare_benchmark_sets method to reduce code repetition. Also, changed the legalize_shape method to use the key "m" instead of "M" in the dyn_prof_shape dictionary. [1] [2]

Error handling improvements:

Code simplification:

  • bitblas/base/utils.py: Removed the profile_tensors attribute from the CompileResult class and changed the profile method to calculate latency directly. Also, updated the apply_and_build_parallel function to not use profile_tensors. [1] [2] [3] [4]

Cleanup operations:

@LeiWang1999
Copy link
Contributor Author

/run-benchmark

@LeiWang1999
Copy link
Contributor Author

/run-benchmark

@LeiWang1999
Copy link
Contributor Author

/run-benchmark

@LeiWang1999
Copy link
Contributor Author

/run-benchmark

2 similar comments
@LeiWang1999
Copy link
Contributor Author

/run-benchmark

@LeiWang1999
Copy link
Contributor Author

/run-benchmark

@LeiWang1999 LeiWang1999 marked this pull request as ready for review July 23, 2024 13:24
@LeiWang1999
Copy link
Contributor Author

/run-benchmark

@LeiWang1999 LeiWang1999 merged commit 6022241 into microsoft:main Jul 24, 2024
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