AIESW-6823, AIESW-6824: Optimize cmd_chain latency and throughput tes…#43
Closed
sandilya-xilinx wants to merge 1 commit intoXilinx:mainfrom
Closed
AIESW-6823, AIESW-6824: Optimize cmd_chain latency and throughput tes…#43sandilya-xilinx wants to merge 1 commit intoXilinx:mainfrom
sandilya-xilinx wants to merge 1 commit intoXilinx:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR optimizes the cmd_chain latency and throughput test configurations by updating test parameters based on extensive empirical testing. The changes aim to eliminate performance variance and establish stable, repeatable configurations for validation testing.
Changes:
- Increased iterations from 1 to 20 for both latency and throughput tests to ensure measurement stability
- Set depth=1 for throughput mode (explicit override from default depth=2) after validation showing depth>1 degrades performance by 47-99%
- Removed explicit depth parameter from latency mode configuration as depth=1 is automatic in latency mode
Reviewed changes
Copilot reviewed 2 out of 5 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| profile_cmd_chain_throughput.json | Updated iterations to 20, added explicit mode and depth=1 parameters for optimal throughput |
| profile_cmd_chain_latency.json | Updated iterations to 20, removed redundant depth parameter (automatic in latency mode) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…t configurations [WHY] - Default configurations showed high variance and suboptimal performance - Throughput mode defaulted to depth=2, causing performance degradation - Needed stable, repeatable configurations for validation testing - Required sufficient iterations for framework warm-up and measurement stability [HOW] - Conducted extensive empirical testing (27+ samples per configuration) - Set latency: 20 iterations × 1000 runs (depth=1 automatic in latency mode) - Set throughput: 20 iterations × 1000 runs × depth=1 (explicit override) - Validated depth=1 is mandatory for optimal throughput (depth>1 degrades 47-99%) - Confirmed 20 iterations minimum for stable measurements (10 iters = ±47% variance) - Verified 1000 runs optimal for peak performance [RESULTS] - Latency: 14.2 µs average, range 13-16 µs, ±3 µs variance - Throughput: 71,716 ops/s average, range 66,764-75,508 ops/s, ±13% variance - Peak throughput: 76,738 ops/s (highest observed across all testing)
e52fbb7 to
2aaa407
Compare
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
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.
…t configurations
[WHY]
[HOW]
[RESULTS]
Processing 1 folder(s)...
Updating xrt_smi_npu3.a from 30 files...
✓ Updated: npu3\xrt_smi_npu3.a
🔄 Files updated (4):
~ profile_cmd_chain_latency.json
~ profile_cmd_chain_throughput.json
~ recipe_cmd_chain_latency.json
~ recipe_cmd_chain_throughput.json
============================================================
SUMMARY:
Archives processed: 1/1
Total new files: 0
Total updated files: 4
Archive changes:
xrt_smi_npu3.a: 4 updated