-
Notifications
You must be signed in to change notification settings - Fork 514
FEDP2K + WGMMA dse + opts #380
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
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a6deed7
small mx patch
NikhilRout 82cefca
added sgemm_tcu_wg_mx
NikhilRout 8149515
fedp2k + wg desc uop expt
NikhilRout cf4d263
fixed sgemm_tcu_wg_sp
NikhilRout aacecc9
fedp2k + desc uop rtl
NikhilRout 2501503
bug fixes
NikhilRout 7709074
updated tensor_wg ci testcases
NikhilRout 3ba84d1
pr fixes
NikhilRout 18921f1
deleting mxint8 datapath + helpers
NikhilRout d63c5a2
only fedp2k+rs requires extra desc uop
NikhilRout 8dcb120
pr fixes
NikhilRout File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,42 @@ | ||
| { | ||
| "tensor_wg:perf_gate-wgmma-fp16:rtlsim": { | ||
| "tensor_wg:perf_gate-wgmma-fp16-ss:rtlsim": { | ||
| "32": { | ||
| "cycles": 758510, | ||
| "instrs": 525536 | ||
| "cycles": 107212, | ||
| "instrs": 66640 | ||
| }, | ||
| "app": "sgemm_tcu_wg", | ||
| "args": "-m 128 -n 128 -k 128", | ||
| "config_hash": "020544d97c1a5a27", | ||
| "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DITYPE=fp16 -DOTYPE=fp32 -DWGMMA_NRC=32" | ||
| "args": "-m 64 -n 64 -k 64", | ||
| "config_hash": "64856bfe7975f530", | ||
| "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DITYPE=fp16 -DOTYPE=fp32 -DWGMMA_NRC=32 -DWGMMA_SS" | ||
| }, | ||
| "tensor_wg:perf_gate-wgmma-fedp2k-rs:rtlsim": { | ||
| "32": { | ||
| "cycles": 166490, | ||
| "instrs": 108512 | ||
| }, | ||
| "app": "sgemm_tcu_wg", | ||
| "args": "-m64 -n64 -k64", | ||
| "config_hash": "84f3ab0ee89d1c7e", | ||
| "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DVX_CFG_TCU_FEDP2K -DITYPE=fp16 -DOTYPE=fp32 -DWGMMA_NRC=8 -DWGMMA_RS" | ||
| }, | ||
| "tensor_wg:perf_gate-wgmma-sparse:rtlsim": { | ||
| "tensor_wg:perf_gate-wgmma-sp-rs:rtlsim": { | ||
| "32": { | ||
| "cycles": 812012, | ||
| "cycles": 778048, | ||
| "instrs": 438752 | ||
| }, | ||
| "app": "sgemm_tcu_wg_sp", | ||
| "args": "-m 128 -n 128 -k 128", | ||
| "config_hash": "b94d94645f0461c8", | ||
| "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DVX_CFG_TCU_SPARSE_ENABLE -DWGMMA_NRC=32" | ||
| "config_hash": "6524c99e95160ff1", | ||
| "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DVX_CFG_TCU_SPARSE_ENABLE -DWGMMA_NRC=32 -DWGMMA_RS" | ||
| }, | ||
| "tensor_wg:perf_gate-wgmma-mx-fedp2k-rs:rtlsim": { | ||
| "32": { | ||
| "cycles": 139877, | ||
| "instrs": 86304 | ||
| }, | ||
| "app": "sgemm_tcu_wg_mx", | ||
| "args": "-m64 -n64 -k64", | ||
| "config_hash": "a0d52f0bb1cc7294", | ||
| "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DVX_CFG_TCU_MX_ENABLE -DVX_CFG_TCU_FP8_ENABLE -DVX_CFG_TCU_FEDP2K -DVX_CFG_TCU_TYPE_DPI -DITYPE=mxfp8 -DOTYPE=fp32 -DWGMMA_NRC=8 -DWGMMA_RS" | ||
| } | ||
| } | ||
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
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
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. tier: fast doesn't exist |
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Do not modify the coverage of an existing baseline; we need to have perfect args and config match to catch regression.
You are free to expand the perf gate coverage with new tests
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.
this test was defaulting to RS mode previously (from sgemm_tcu_wg makefile)
so we were essentially never testing SS mode in perf_gate
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.
and I also changed 128^3 to 64^3 cause large rtlsim runs would just crash verilator on my local setup
so I couldnt even generate the SS baseline with 128^3
but i guess if we really want large dims for this I can fail this particular perf_gate test once in CI on purpose and then get the value from there and then manually edit baseline instead of through pytest?