Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ follows the version pins recorded in [VERSION](VERSION) (`VORTEX_VERSION`,
negation are summed in parallel instead of a negate after the sum. Results stay bit-identical to `sw/common/tfu.cpp` and the
pipeline stays 7 stages. Beacon: the `tfu` DUT drops from 24 to 13 logic levels, and a 16-warp, 8-thread core with the TFU
from 23 to 15 (the TFU no longer sets its depth); the ASIC estimate of `tfu` rises from 913 to 1239 MHz with 7% fewer cells.
- **FPU tags ride the pipeline.** Each FPU block carries the instruction header through its backend's pipeline registers in place
of the 2-entry tag store, so an FMA block keeps up to its pipeline depth in flight instead of two operations.
`VX_CFG_FPU_QUEUE_SIZE` is removed. The commit arbiter grants round-robin instead of FPU first, which the tag limit no
longer justifies and which would now starve the ALU and LSU.
- **FDIV/FSQRT run on the TFU.** The FPU's divide/square-root units are gone: VX_uop_fdiv expands FDIV and FSQRT (.S and .D) into
TFU reciprocal/rsqrt micro-ops plus FMUL, FSUB, FSGNJX and F2F, writing only rd. Results are within 3 ulp, not correctly rounded,
and raise only the flags of the FPU micro-ops (no DZ). The TFU is now part of every F build (`VX_CFG_EXT_TFU_ENABLE` follows
Expand Down
1 change: 0 additions & 1 deletion VX_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ VX_CFG_FPU_TYPE = "expr: ('STD' if $ASIC else 'DSP') if $SYNTHESIS else ('DPI' i

VX_CFG_NUM_FPU_LANES = "expr: $VX_CFG_SIMD_WIDTH"
VX_CFG_NUM_FPU_BLOCKS = "expr: $VX_CFG_ISSUE_WIDTH"
VX_CFG_FPU_QUEUE_SIZE = "expr: 2 * ($VX_CFG_SIMD_WIDTH // $VX_CFG_NUM_FPU_LANES)"
# Map the soft FPU (STD) mantissa multipliers onto DSP48: on for FPGA synth, off
# for ASIC/sim (mirrors VX_CFG_TCU_USE_DSP). Single source of truth.
VX_CFG_FPU_USE_DSP = "expr: 1 if ($SYNTHESIS and not $ASIC) else 0"
Expand Down
68 changes: 34 additions & 34 deletions ci/baselines/perf/core.json
Original file line number Diff line number Diff line change
@@ -1,188 +1,188 @@
{
"core:raycast-nt16:rtlsim": {
"32": {
"cycles": 7575004,
"cycles": 7564717,
"instrs": 2258191
},
"app": "raycast",
"args": "",
"config_hash": "57363097e97b43e0",
"config_hash": "f4c76a1e2f5dc47e",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
"core:raycast-nt4:rtlsim": {
"32": {
"cycles": 18552450,
"cycles": 18539985,
"instrs": 5698339
},
"app": "raycast",
"args": "",
"config_hash": "9245d48e06c98ced",
"config_hash": "318b6ce9d5e1f486",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
"core:sgemm-mc-nt16:rtlsim": {
"32": {
"cycles": 474193,
"cycles": 471288,
"instrs": 621632
},
"app": "sgemm",
"args": "-n128",
"config_hash": "36f8a3823290652c",
"config_hash": "cbecdcbbaed20e68",
"configs": "-DVX_CFG_NUM_WARPS=8 -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=16 -DVX_CFG_L2_ENABLE",
"driver": "rtlsim"
},
"core:sgemm-mc-nt4:rtlsim": {
"32": {
"cycles": 1680553,
"cycles": 1647491,
"instrs": 2486336
},
"app": "sgemm",
"args": "-n128",
"config_hash": "984b01e8101cfc47",
"config_hash": "bf6fa85ceb50412c",
"configs": "-DVX_CFG_NUM_WARPS=8 -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=4 -DVX_CFG_L2_ENABLE",
"driver": "rtlsim"
},
"core:sgemm-nt16:rtlsim": {
"32": {
"cycles": 1556536,
"cycles": 1574058,
"instrs": 621584
},
"app": "sgemm",
"args": "-n128",
"config_hash": "cde9952ab2b97bd9",
"config_hash": "22fcfc593afe269c",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
"core:sgemm-nt4:rtlsim": {
"32": {
"cycles": 5869813,
"cycles": 5841715,
"instrs": 2486288
},
"app": "sgemm",
"args": "-n128",
"config_hash": "322a72e62381f276",
"config_hash": "65689af0d18b22ce",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
"core:sgemm2-wide:rtlsim": {
"32": {
"cycles": 328310,
"cycles": 326276,
"instrs": 111376
},
"app": "sgemm2",
"args": "-n64 -t4",
"config_hash": "ff8c45e67d6cc15b",
"config_hash": "d5ed2469dec6faf8",
"configs": "-DVX_CFG_EXT_LDST_WIDE_ENABLE -DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
"core:sgemmx-nt16:rtlsim": {
"32": {
"cycles": 1023778,
"cycles": 989001,
"instrs": 266832
},
"app": "sgemmx",
"args": "-n128",
"config_hash": "161b4f819b26531a",
"config_hash": "64f2803e69ec5ddb",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
"core:sgemmx-nt4:rtlsim": {
"32": {
"cycles": 3987094,
"cycles": 3699717,
"instrs": 1067280
},
"app": "sgemmx",
"args": "-n128",
"config_hash": "202a63f8eb007416",
"config_hash": "1ad6e7738078f9f8",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
"core:sgemv-nt16:rtlsim": {
"32": {
"cycles": 285869,
"cycles": 287646,
"instrs": 66704
},
"app": "sgemv",
"args": "-m512 -n512",
"config_hash": "51a66e6894500a43",
"config_hash": "b0da0a19d68d3df3",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
"core:sgemv-nt4:rtlsim": {
"32": {
"cycles": 746326,
"cycles": 743623,
"instrs": 266768
},
"app": "sgemv",
"args": "-m512 -n512",
"config_hash": "ff5fd64440c02266",
"config_hash": "66e91137ff2dce6b",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
"core:softmax-nt16:rtlsim": {
"32": {
"cycles": 1274253,
"cycles": 1274776,
"instrs": 463065
},
"app": "softmax",
"args": "-n64",
"config_hash": "147969a83745f11a",
"config_hash": "82f30781ddc8767a",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
"core:softmax-nt4:rtlsim": {
"32": {
"cycles": 4859055,
"cycles": 4859770,
"instrs": 1785701
},
"app": "softmax",
"args": "-n64",
"config_hash": "4107408b3546b287",
"config_hash": "72b80c104d72b3c6",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
"core:stencil3d-nt16:rtlsim": {
"32": {
"cycles": 2137750,
"cycles": 2128244,
"instrs": 897040
},
"app": "stencil3d",
"args": "-n32",
"config_hash": "56c620b8af62d61f",
"config_hash": "53ea9544c66daf39",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
"core:stencil3d-nt4:rtlsim": {
"32": {
"cycles": 4210252,
"cycles": 4201897,
"instrs": 1794064
},
"app": "stencil3d",
"args": "-n32",
"config_hash": "5cb0f49ff28434f8",
"config_hash": "d41cc5bbe6abe70d",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
"core:vecadd-nt16:rtlsim": {
"32": {
"cycles": 91021,
"cycles": 91487,
"instrs": 27664
},
"app": "vecadd",
"args": "-n16384",
"config_hash": "6c8e84402d768f8c",
"config_hash": "27644211377f5795",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
"core:vecadd-nt4:rtlsim": {
"32": {
"cycles": 348467,
"cycles": 348462,
"instrs": 110608
},
"app": "vecadd",
"args": "-n16384",
"config_hash": "c7cdda870b2f2369",
"config_hash": "cae46082a9e258a5",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
}
Expand Down
42 changes: 21 additions & 21 deletions ci/baselines/perf/dxa.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"dxa:perf_gate-copy-mcast:rtlsim": {
"32": {
"cycles": 3445,
"cycles": 3449,
"instrs": 955
},
"app": "dxa_copy_mcast",
"args": "",
"config_hash": "7256353ed29b8be3",
"config_hash": "6cb28dab8a233a33",
"configs": "-DVX_CFG_EXT_DXA_ENABLE",
"driver": "rtlsim"
},
"dxa:perf_gate-copy-nt16:rtlsim": {
"32": {
"cycles": 1896,
"cycles": 1897,
"instrs": 560
},
"app": "dxa_copy",
"args": "-d1",
"config_hash": "fb1f2e9ec30fda50",
"config_hash": "fd7d321f858e3d83",
"configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -28,95 +28,95 @@
},
"app": "dxa_copy",
"args": "-d1",
"config_hash": "7f9fbf8169361c7d",
"config_hash": "7b8fc1ae336220a3",
"configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
"dxa:perf_gate-sgemm2-dxa-mcast-nt16:rtlsim": {
"32": {
"cycles": 10012679,
"cycles": 9951265,
"instrs": 3829776
},
"app": "sgemm2_dxa_mcast",
"args": "-n128",
"config_hash": "9936082f7f64c31c",
"config_hash": "1efdef9956961885",
"configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
"dxa:perf_gate-sgemm2-dxa-mcast-nt4:rtlsim": {
"32": {
"cycles": 10043665,
"cycles": 9982161,
"instrs": 3829776
},
"app": "sgemm2_dxa_mcast",
"args": "-n128",
"config_hash": "42207bd5a2540914",
"config_hash": "c6f5492c89413ef4",
"configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
"dxa:perf_gate-sgemm2-dxa-nt16:rtlsim": {
"32": {
"cycles": 2275856,
"cycles": 2275789,
"instrs": 835600
},
"app": "sgemm2_dxa",
"args": "-n128 -t4 -m1",
"config_hash": "182e784c92df69ec",
"config_hash": "c1f268439f2fd299",
"configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
"dxa:perf_gate-sgemm2-dxa-nt4:rtlsim": {
"32": {
"cycles": 8962589,
"cycles": 9023340,
"instrs": 3302416
},
"app": "sgemm2_dxa",
"args": "-n128 -t4 -m1",
"config_hash": "502dd7dc09e817df",
"config_hash": "98038dc180cb3ae0",
"configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
"dxa:perf_gate-wgmma-dxa-mcast-nt16:rtlsim": {
"32": {
"cycles": 81041,
"cycles": 80564,
"instrs": 26560
},
"app": "sgemm_tcu_wg_dxa_mcast",
"args": "-m 128 -n 128 -k 64",
"config_hash": "6e9bafbc4d311719",
"config_hash": "dabb9faa77c61dbd",
"configs": "-DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1 -DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
"dxa:perf_gate-wgmma-dxa-mcast-nt4:rtlsim": {
"32": {
"cycles": 378836,
"cycles": 353714,
"instrs": 170560
},
"app": "sgemm_tcu_wg_dxa_mcast",
"args": "-m 128 -n 128 -k 64",
"config_hash": "d65701a0bff5e490",
"config_hash": "23ca99c4e82c0cf6",
"configs": "-DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1 -DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
"dxa:perf_gate-wgmma-dxa:rtlsim": {
"32": {
"cycles": 28114,
"cycles": 28649,
"instrs": 8872
},
"app": "sgemm_tcu_wg_dxa",
"args": "-m 128 -n 128 -k 64",
"config_hash": "95baccf7110a4641",
"config_hash": "c1a80608550d9402",
"configs": "-DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DVX_CFG_EXT_DXA_ENABLE -DWGMMA_NRC=16 -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_NUM_THREADS=32",
"driver": "rtlsim"
},
"dxa:perf_gate-wgmma-sp-dxa:rtlsim": {
"32": {
"cycles": 47433,
"cycles": 47326,
"instrs": 9344
},
"app": "sgemm_tcu_wg_sp_dxa",
"args": "-m 128 -n 128 -k 128",
"config_hash": "f9b2facc7c7a1318",
"config_hash": "785aae0b786d4fb1",
"configs": "-DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DVX_CFG_TCU_SPARSE_ENABLE -DVX_CFG_EXT_DXA_ENABLE -DWGMMA_NRC=32 -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_NUM_THREADS=32",
"driver": "rtlsim"
}
Expand Down
Loading
Loading