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
8 changes: 8 additions & 0 deletions VX_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,14 @@ VX_CFG_TCU_SPARSE_ENABLE = false
VX_CFG_TCU_DSM_ENABLE = false
VX_CFG_TCU_WGMMA_ENABLE = false
VX_CFG_TCU_FEDP2K = false
# Tensor memory: a per-core accumulator of (TCU blocks x WGMMA M) lanes by
# TMEM_COLS 32-bit columns, written by the TCU's single-thread MMA engine.
VX_CFG_TCU_TMEM_ENABLE = false
VX_CFG_TCU_TMEM_COLS = 128
# Per-warp MMAs (tcu.wmma, and tcu.ld for their sparse and MX metadata). A
# tensor-memory build can drop them, as its MMAs are tc.mma: the TCU then keeps
# no register-operand path, result landing queue or metadata store.
VX_CFG_TCU_WMMA_ENABLE = true

[dxa]
# Cluster-level DXA engine count, decoupled from cores/socket size.
Expand Down
16 changes: 15 additions & 1 deletion VX_types.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ VX_DCR_KMU_WARP_STEP_Z = 0x020
VX_DCR_KMU_CLUSTER_DIM_X= 0x021
VX_DCR_KMU_CLUSTER_DIM_Y= 0x022
VX_DCR_KMU_CLUSTER_DIM_Z= 0x023
VX_DCR_KMU_STATE_END = 0x024
# TMEM columns a CTA may allocate (tensor-memory builds; 0 = none)
VX_DCR_KMU_TMEM_COLS = 0x024
VX_DCR_KMU_STATE_END = 0x025

# DXA descriptor DCR mapping
# access pattern:
Expand Down Expand Up @@ -809,6 +811,18 @@ VX_CSR_MPM_TCU_TBUF_CACHE_HITS= 0xB04 # B tile reuse hits from tile buffer cach
VX_CSR_MPM_TCU_TBUF_CACHE_HITS_H = 0xB84
VX_CSR_MPM_TCU_LMEM_READS = 0xB05 # tile buffer local memory reads
VX_CSR_MPM_TCU_LMEM_READS_H = 0xB85
# Each cycle falls in one bucket: MMA busy (block-cycles), else operand wait,
# other op activity, or idle.
VX_CSR_MPM_TCU_MMA_BUSY = 0xB06 # block-cycles an MMA step fired
VX_CSR_MPM_TCU_MMA_BUSY_H = 0xB86
VX_CSR_MPM_TCU_OPND_WAITS = 0xB07 # cycles: MMA waits on A/B operands (tile buffers, TMEM A)
VX_CSR_MPM_TCU_OPND_WAITS_H = 0xB87
VX_CSR_MPM_TCU_JOB_OTHER = 0xB08 # cycles: op start, drain or tc.cp
VX_CSR_MPM_TCU_JOB_OTHER_H = 0xB88
VX_CSR_MPM_TCU_IDLE = 0xB09 # cycles: no MMA work
VX_CSR_MPM_TCU_IDLE_H = 0xB89
VX_CSR_MPM_TCU_TMEM_XFERS = 0xB0A # tmem.ld/st transfers
VX_CSR_MPM_TCU_TMEM_XFERS_H = 0xB8A

[csr_mpm_tex]
# PERF: texture unit (per-core; summed across blocks)
Expand Down
32 changes: 16 additions & 16 deletions ci/baselines/perf/core.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"app": "raycast",
"args": "",
"config_hash": "55cc313a7e04e175",
"config_hash": "64e9e5a25d1e2a09",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -17,7 +17,7 @@
},
"app": "raycast",
"args": "",
"config_hash": "dd27d4e019b1ce48",
"config_hash": "c510e9f7148f4946",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -28,7 +28,7 @@
},
"app": "sgemm",
"args": "-n128",
"config_hash": "bb3179476f050efd",
"config_hash": "21aab5bba66ac62b",
"configs": "-DVX_CFG_NUM_WARPS=8 -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=16 -DVX_CFG_L2_ENABLE",
"driver": "rtlsim"
},
Expand All @@ -39,7 +39,7 @@
},
"app": "sgemm",
"args": "-n128",
"config_hash": "d7960926dfeeeb1a",
"config_hash": "5f8cf4c71b92c942",
"configs": "-DVX_CFG_NUM_WARPS=8 -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=4 -DVX_CFG_L2_ENABLE",
"driver": "rtlsim"
},
Expand All @@ -50,7 +50,7 @@
},
"app": "sgemm",
"args": "-n128",
"config_hash": "fa3eb81110539fb3",
"config_hash": "93d1b380eee6deca",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -61,7 +61,7 @@
},
"app": "sgemm",
"args": "-n128",
"config_hash": "faa73f4f1a81a3d0",
"config_hash": "c5bf07f37e7138ad",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -72,7 +72,7 @@
},
"app": "sgemmx",
"args": "-n128",
"config_hash": "5e051358cb6705f1",
"config_hash": "421828365e2ecd6c",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -83,7 +83,7 @@
},
"app": "sgemmx",
"args": "-n128",
"config_hash": "0286292d319c5b4e",
"config_hash": "a7fe9f753a0252ac",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -94,7 +94,7 @@
},
"app": "sgemv",
"args": "-m512 -n512",
"config_hash": "2a1bbb428f8d6870",
"config_hash": "13ed12600d6e8b52",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -105,7 +105,7 @@
},
"app": "sgemv",
"args": "-m512 -n512",
"config_hash": "575d72e47c1c0daa",
"config_hash": "991fca3ec4f7973f",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -116,7 +116,7 @@
},
"app": "softmax",
"args": "-n64",
"config_hash": "d656cb5ba22d494f",
"config_hash": "29f89984d6d0e88a",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -127,7 +127,7 @@
},
"app": "softmax",
"args": "-n64",
"config_hash": "f5c775b6c4dbc1cf",
"config_hash": "3ca05440481ede4c",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -138,7 +138,7 @@
},
"app": "stencil3d",
"args": "-n32",
"config_hash": "5082708220a3aab3",
"config_hash": "5bb225a8ac33b76e",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -149,7 +149,7 @@
},
"app": "stencil3d",
"args": "-n32",
"config_hash": "7c57f7380ccb6a94",
"config_hash": "062509a58ad8a615",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -160,7 +160,7 @@
},
"app": "vecadd",
"args": "-n16384",
"config_hash": "37045d524c1e46ce",
"config_hash": "4e23fce9a7cde1af",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -171,7 +171,7 @@
},
"app": "vecadd",
"args": "-n16384",
"config_hash": "d353d7d15f65b5fd",
"config_hash": "d26f5691b16379af",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
}
Expand Down
22 changes: 11 additions & 11 deletions ci/baselines/perf/dxa.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"app": "dxa_copy_mcast",
"args": "",
"config_hash": "902d06551db54908",
"config_hash": "999be30221437b60",
"configs": "-DVX_CFG_EXT_DXA_ENABLE",
"driver": "rtlsim"
},
Expand All @@ -17,7 +17,7 @@
},
"app": "dxa_copy",
"args": "-d1",
"config_hash": "07394e6aa480a2d8",
"config_hash": "a7106de0162a4623",
"configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -28,7 +28,7 @@
},
"app": "dxa_copy",
"args": "-d1",
"config_hash": "2bb76314b3aac79b",
"config_hash": "efac16d11bd7cf0a",
"configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -39,7 +39,7 @@
},
"app": "sgemm2_dxa_mcast",
"args": "-n128",
"config_hash": "cbfcd136a9cbf5f3",
"config_hash": "a5cee3fc6c83fd7d",
"configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -50,7 +50,7 @@
},
"app": "sgemm2_dxa_mcast",
"args": "-n128",
"config_hash": "4c813805db4d6ceb",
"config_hash": "e14d806d8bd9a2e8",
"configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -61,7 +61,7 @@
},
"app": "sgemm2_dxa",
"args": "-n128 -t4 -m1",
"config_hash": "dc6a4fb24203f236",
"config_hash": "93bd68d622aac84e",
"configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -72,7 +72,7 @@
},
"app": "sgemm2_dxa",
"args": "-n128 -t4 -m1",
"config_hash": "c0117149996966a4",
"config_hash": "2f3bbd2ee55960bb",
"configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -83,7 +83,7 @@
},
"app": "sgemm_tcu_wg_dxa_mcast",
"args": "-m 128 -n 128 -k 64",
"config_hash": "4578525b3dad120a",
"config_hash": "0341375cebb0f59c",
"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"
},
Expand All @@ -94,7 +94,7 @@
},
"app": "sgemm_tcu_wg_dxa_mcast",
"args": "-m 128 -n 128 -k 64",
"config_hash": "cf9987cc4e0ec4b6",
"config_hash": "26fad4c9705aed4d",
"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"
},
Expand All @@ -105,7 +105,7 @@
},
"app": "sgemm_tcu_wg_dxa",
"args": "-m 128 -n 128 -k 64",
"config_hash": "2dfa43c0ffd2af2a",
"config_hash": "6f9adeef7694981f",
"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"
},
Expand All @@ -116,7 +116,7 @@
},
"app": "sgemm_tcu_wg_sp_dxa",
"args": "-m 128 -n 128 -k 128",
"config_hash": "5cb40c33773fc66c",
"config_hash": "d6851252177f1646",
"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
18 changes: 9 additions & 9 deletions ci/baselines/perf/graphics.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"app": "gfx_draw3d",
"args": "-w 128 -h 128 -t box.cgltrace -r box_ref_128.png",
"config_hash": "89c0128e9ca4f6fd",
"config_hash": "f5146f0e5d82a46f",
"configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=4 -DVX_CFG_L2_ENABLE",
"driver": "rtlsim"
},
Expand All @@ -17,7 +17,7 @@
},
"app": "gfx_draw3d",
"args": "-w 128 -h 128 -t box.cgltrace -r box_ref_128.png",
"config_hash": "e624b9b51f6baef3",
"config_hash": "dbcd7fd3ddbda418",
"configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -28,7 +28,7 @@
},
"app": "gfx_draw3d",
"args": "-w 128 -h 128 -t box.cgltrace -r box_ref_128.png",
"config_hash": "270685a4f2b573e4",
"config_hash": "6aadf54b35dc0647",
"configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -39,7 +39,7 @@
},
"app": "gfx_om",
"args": "-w 128 -h 128 -r whitebox_128.png",
"config_hash": "8f81b9cbea824821",
"config_hash": "caa9e6ba2de5b84c",
"configs": "-DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -50,7 +50,7 @@
},
"app": "gfx_om",
"args": "-w 128 -h 128 -r whitebox_128.png",
"config_hash": "96b6e6d47c8f0e6f",
"config_hash": "2570b75908f50b5f",
"configs": "-DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -61,7 +61,7 @@
},
"app": "gfx_raster",
"args": "-w 128 -h 128 -t triangle.cgltrace -r triangle_ref_128.png",
"config_hash": "465f2e520f475df5",
"config_hash": "077a73e97ac40aaf",
"configs": "-DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -72,7 +72,7 @@
},
"app": "gfx_raster",
"args": "-w 128 -h 128 -t triangle.cgltrace -r triangle_ref_128.png",
"config_hash": "f672749b1816d04d",
"config_hash": "70bcf12dd9128328",
"configs": "-DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -83,7 +83,7 @@
},
"app": "gfx_tex",
"args": "-i toad.png -r toad_ref_f0.png -f 0 -g 0",
"config_hash": "54f35f4d8236a2f5",
"config_hash": "77a995398d75b76e",
"configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -94,7 +94,7 @@
},
"app": "gfx_tex",
"args": "-i toad.png -r toad_ref_f0.png -f 0 -g 0",
"config_hash": "dba2310b8ed2bc68",
"config_hash": "a26ed38adf8abfef",
"configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
}
Expand Down
6 changes: 3 additions & 3 deletions ci/baselines/perf/raytracing.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"app": "rt_raycast",
"args": "",
"config_hash": "926004202e1230cc",
"config_hash": "cb5ac65d97b37bc4",
"configs": "-DVX_CFG_EXT_RTU_ENABLE -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=4 -DVX_CFG_L2_ENABLE",
"driver": "rtlsim"
},
Expand All @@ -17,7 +17,7 @@
},
"app": "rt_raycast",
"args": "",
"config_hash": "cde0e92d03a53a87",
"config_hash": "ad5c5c8fc898de0f",
"configs": "-DVX_CFG_EXT_RTU_ENABLE -DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -28,7 +28,7 @@
},
"app": "rt_raycast",
"args": "",
"config_hash": "fffab4e1c8cfe28a",
"config_hash": "48899325e57dd970",
"configs": "-DVX_CFG_EXT_RTU_ENABLE -DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
}
Expand Down
Loading
Loading