-
Notifications
You must be signed in to change notification settings - Fork 44
[ New Feature ] test_compiler 优化 #240
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Thanks for your contribution! |
lixinqi
reviewed
Aug 28, 2025
lixinqi
reviewed
Aug 29, 2025
lixinqi
approved these changes
Aug 29, 2025
JewelRoam
added a commit
to JewelRoam/GraphNet
that referenced
this pull request
Oct 29, 2025
* CONTRIBUTE_TUTORIAL_cn.md * Handle big int tensors by converting to sparse COO * Update utils * Update utils * Update utils * Update utils * Update utils * Update paddle test compiler * Add compilation_duration display * resolve conflict * Update test compiler * feat: add stuctured json output in test compiler * revert paddle test compiler * rename 16:36 * rename performance_eval.py * rename performance_eval.py * Optimize configuration record in .json * Optimize configuration record in .json * Optimize configuration record in .json * Optimize configuration record in .json * Correct warmup * Update * Update * Update
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
引入 GPU 计时器:
集成了 KernelBench 评测机制,当在 CUDA 设备上进行测试时(--device cuda),脚本现已采用基于 torch.cuda.Event 的 time_execution_with_cuda_event 函数进行计时。
对于 CPU 测试,保留了原有的 naive_timer 机制,并为其增加了与 GPU 模式类似的逐次试验(Trial-by-trial)的详细输出,统一了两种模式下的日志风格。
增加多次计时功能:
将计时试验次数(--trials)添加为命令行参数(默认5),允许用户根据评测需求灵活配置,方便进行快速调试或深度分析。
增加结构化导出功能
使用命令行参数 --output-dir 将模型/编译器配置参数组合下测定的性能数据存储到特定json文件中,方便后续分析。