Skip to content
Merged
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: 7 additions & 1 deletion VX_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ VX_CFG_EXT_A_ENABLE = false
# an atomic, it does not replace the set. Off by default because it widens the
# memory request with a comparand operand.
VX_CFG_EXT_ZACAS_ENABLE = false
# 64-bit atomics on a 32-bit hart. The .D encodings of the read-modify-write
# atomics, and of Zacas amocas.d, operate on even-aligned register pairs
# (rd/rd+1, rs2/rs2+1), the pairing Zacas defines for amocas.d on RV32. LR.D and
# SC.D stay illegal. Requires the A extension and XLEN=32 (a 64-bit hart has the
# .D forms natively). Without it, a .D atomic on a 32-bit hart traps as illegal.
VX_CFG_EXT_AMO64_ENABLE = false

VX_CFG_EXT_ZICOND_ENABLE = true
# Zfhmin: half-precision load/store, move and fp16<->fp32/fp64 conversion (no
Expand Down Expand Up @@ -557,7 +563,7 @@ VX_CFG_NUM_OCACHES = "expr: max(1, up($VX_CFG_NUM_OM_CORES / 4))"
VX_CFG_MISA_STD = "expr: ($VX_CFG_EXT_A_ENABLED << 0) | (0 << 1) | ($VX_CFG_EXT_C_ENABLED << 2) | ($VX_CFG_EXT_D_ENABLED << 3) | (0 << 4) | ($VX_CFG_EXT_F_ENABLED << 5) | (0 << 6) | (0 << 7) | (1 << 8) | (0 << 9) | (0 << 10) | (0 << 11) | ($VX_CFG_EXT_M_ENABLED << 12) | (0 << 13) | (0 << 14) | (0 << 15) | (0 << 16) | (0 << 17) | (0 << 18) | (0 << 19) | (1 << 20) | (0 << 21) | (0 << 22) | (1 << 23) | (0 << 24) | (0 << 25)"

# Custom extensions signature
VX_CFG_MISA_EXT = "expr: ($VX_CFG_ICACHE_ENABLED << 0) | ($VX_CFG_DCACHE_ENABLED << 1) | ($VX_CFG_L2_ENABLED << 2) | ($VX_CFG_L3_ENABLED << 3) | ($VX_CFG_LMEM_ENABLED << 4) | ($VX_CFG_EXT_ZICOND_ENABLED << 5) | ($VX_CFG_EXT_TCU_ENABLED << 9) | ($VX_CFG_EXT_DXA_ENABLED << 10) | ($VX_CFG_EXT_TEX_ENABLED << 6) | ($VX_CFG_EXT_RASTER_ENABLED << 7) | ($VX_CFG_EXT_OM_ENABLED << 8) | ($VX_CFG_EXT_RTU_ENABLED << 11) | ($VX_CFG_EXT_TFU_ENABLED << 12) | ($VX_CFG_EXT_ZFHMIN_ENABLED << 13) | ($VX_CFG_EXT_LDST_WIDE_ENABLED << 14) | ($VX_CFG_EXT_LDST_MATRIX_ENABLED << 15)"
VX_CFG_MISA_EXT = "expr: ($VX_CFG_ICACHE_ENABLED << 0) | ($VX_CFG_DCACHE_ENABLED << 1) | ($VX_CFG_L2_ENABLED << 2) | ($VX_CFG_L3_ENABLED << 3) | ($VX_CFG_LMEM_ENABLED << 4) | ($VX_CFG_EXT_ZICOND_ENABLED << 5) | ($VX_CFG_EXT_TCU_ENABLED << 9) | ($VX_CFG_EXT_DXA_ENABLED << 10) | ($VX_CFG_EXT_TEX_ENABLED << 6) | ($VX_CFG_EXT_RASTER_ENABLED << 7) | ($VX_CFG_EXT_OM_ENABLED << 8) | ($VX_CFG_EXT_RTU_ENABLED << 11) | ($VX_CFG_EXT_TFU_ENABLED << 12) | ($VX_CFG_EXT_ZFHMIN_ENABLED << 13) | ($VX_CFG_EXT_LDST_WIDE_ENABLED << 14) | ($VX_CFG_EXT_LDST_MATRIX_ENABLED << 15) | ($VX_CFG_EXT_AMO64_ENABLED << 17)"

[toolchain]
ASIC = false
Expand Down
1 change: 1 addition & 0 deletions VX_types.toml
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ VX_RT_CB_TYPE_PROC = 2

[traps]
# RISC-V M-mode synchronous trap causes. 0..15 are standard.
VX_TRAP_CAUSE_ILLEGAL_INSTR = 2
VX_TRAP_CAUSE_BREAKPOINT = 3
VX_TRAP_CAUSE_ECALL_MMODE = 11

Expand Down
34 changes: 17 additions & 17 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": "6a8db2da81885bd3",
"config_hash": "ec2eab37ae6610df",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -17,7 +17,7 @@
},
"app": "raycast",
"args": "",
"config_hash": "a7365739bd29ae7f",
"config_hash": "85c93eaa65ab0e29",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -28,7 +28,7 @@
},
"app": "sgemm",
"args": "-n128",
"config_hash": "a94d5512bae0d0c4",
"config_hash": "54fdc586ad40dfe6",
"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": "ed82856d2fbdb4fa",
"config_hash": "99a2d875b0cc052f",
"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": "207c97cf1edf224d",
"config_hash": "790857eb58ef4a38",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -61,7 +61,7 @@
},
"app": "sgemm",
"args": "-n128",
"config_hash": "ddaf766d29f0c9e2",
"config_hash": "b073425087f8afcc",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -72,7 +72,7 @@
},
"app": "sgemm2",
"args": "-n64 -t4",
"config_hash": "e3a289024245088f",
"config_hash": "4cfad78ae90d8abf",
"configs": "-DVX_CFG_EXT_LDST_WIDE_ENABLE -DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -83,7 +83,7 @@
},
"app": "sgemmx",
"args": "-n128",
"config_hash": "b33624dacfde5ab3",
"config_hash": "5719767a72ddb58b",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -94,7 +94,7 @@
},
"app": "sgemmx",
"args": "-n128",
"config_hash": "c2faf5453d1010f0",
"config_hash": "dd17b407ca109069",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -105,7 +105,7 @@
},
"app": "sgemv",
"args": "-m512 -n512",
"config_hash": "ba5846fb3e38ff61",
"config_hash": "f1cdab89df261a6f",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -116,7 +116,7 @@
},
"app": "sgemv",
"args": "-m512 -n512",
"config_hash": "ff7c79ffef364ae9",
"config_hash": "781c061099be02ba",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -127,7 +127,7 @@
},
"app": "softmax",
"args": "-n64",
"config_hash": "5c38536ce941bce9",
"config_hash": "43c01c10adef3247",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -138,7 +138,7 @@
},
"app": "softmax",
"args": "-n64",
"config_hash": "647c47cbc33e0b1e",
"config_hash": "af19feb4ba83c536",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -149,7 +149,7 @@
},
"app": "stencil3d",
"args": "-n32",
"config_hash": "e962be6c4a705bd0",
"config_hash": "40175d4e0e384496",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -160,7 +160,7 @@
},
"app": "stencil3d",
"args": "-n32",
"config_hash": "44671bcb89d71094",
"config_hash": "f1f7e8066c503382",
"configs": "-DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
},
Expand All @@ -171,7 +171,7 @@
},
"app": "vecadd",
"args": "-n16384",
"config_hash": "3c46a73d97d7dde8",
"config_hash": "86ae627525ff48fa",
"configs": "-DVX_CFG_NUM_THREADS=16",
"driver": "rtlsim"
},
Expand All @@ -182,7 +182,7 @@
},
"app": "vecadd",
"args": "-n16384",
"config_hash": "67f76328e947f037",
"config_hash": "3086b96b5e90ed6e",
"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": "a98f143d348178b8",
"config_hash": "9433b1d6d8b7cff7",
"configs": "-DVX_CFG_EXT_DXA_ENABLE",
"driver": "rtlsim"
},
Expand All @@ -17,7 +17,7 @@
},
"app": "dxa_copy",
"args": "-d1",
"config_hash": "55c5155d6ab46f83",
"config_hash": "3339bf7c49b86d9d",
"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": "ee5d9d68a6bee766",
"config_hash": "5afa5abaffe6e15f",
"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": "82c50e47ea6ea51c",
"config_hash": "5193116f1e881efa",
"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": "8f2e3ded05181df5",
"config_hash": "d1e0db531b6ccd94",
"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": "a94548f6a341be69",
"config_hash": "93e0fad8e2d2f051",
"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": "b647693500d03cdb",
"config_hash": "f52684ed135aa09d",
"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": "7506c2b313ddfb40",
"config_hash": "0464cd431eaff687",
"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": "a7d7a7c19cc97d7f",
"config_hash": "757603f7261ebf58",
"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": "0dfd4e6b3f65442b",
"config_hash": "7dafaa4d0f8c031b",
"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": "30f77e58ea21b51b",
"config_hash": "fe21095a1de0fe13",
"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": "c548118c41bcef23",
"config_hash": "20cf2992755b938e",
"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": "48890b8c1ad7fe04",
"config_hash": "6514e2762ab6355d",
"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": "b08776e5f96f6b97",
"config_hash": "1a9b4fb1be09e582",
"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": "32307cceb33dc7a6",
"config_hash": "d5dbc198569d3dae",
"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": "ce07b69d9a182c02",
"config_hash": "ef58a124aacc1f5b",
"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": "366fbc3590ee481f",
"config_hash": "7a09c8c5f0f1a6c3",
"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": "8c3f6ea5a04a0d52",
"config_hash": "f055c2feba08a052",
"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": "370db7ba23efdbb2",
"config_hash": "0390595d10311ba5",
"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": "a680ecaa56a2c2fd",
"config_hash": "5ac2eac1fba71bcf",
"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": "9fa9d930efb7a892",
"config_hash": "cfcebadf97f11e01",
"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": "bf5c79f92d7a2d0b",
"config_hash": "a05eb1131e4e7969",
"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": "6eca2ad296cbc4c8",
"config_hash": "9b6e3b30f136d6b1",
"configs": "-DVX_CFG_EXT_RTU_ENABLE -DVX_CFG_NUM_THREADS=4",
"driver": "rtlsim"
}
Expand Down
Loading
Loading