From 25d06c8486e3112b244512f7aa0983767f702a5b Mon Sep 17 00:00:00 2001 From: Avimitin Date: Mon, 18 Nov 2024 17:08:28 +0800 Subject: [PATCH 01/10] [tests] initialize all scalar register to zero Signed-off-by: Avimitin --- tests/t1_main.S | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/tests/t1_main.S b/tests/t1_main.S index 1fa081576..eb3185978 100644 --- a/tests/t1_main.S +++ b/tests/t1_main.S @@ -4,6 +4,38 @@ _start: csrs mstatus, a0 csrwi vcsr, 0 + li x1, 0 + li x2, 0 + li x3, 0 + li x4, 0 + li x5, 0 + li x6, 0 + li x7, 0 + li x8, 0 + li x9, 0 + li x10, 0 + li x11, 0 + li x12, 0 + li x13, 0 + li x14, 0 + li x15, 0 + li x16, 0 + li x17, 0 + li x18, 0 + li x19, 0 + li x20, 0 + li x21, 0 + li x22, 0 + li x23, 0 + li x24, 0 + li x25, 0 + li x26, 0 + li x27, 0 + li x28, 0 + li x29, 0 + li x30, 0 + li x31, 0 + la sp, __stacktop // no ra to save From 39729bb50d4a581464a428750bb9ad6577bf95c6 Mon Sep 17 00:00:00 2001 From: Avimitin Date: Mon, 18 Nov 2024 17:13:52 +0800 Subject: [PATCH 02/10] [emu] increase SRAM size to 1024M Signed-off-by: Avimitin --- difftest/dpi_t1rocketemu/src/bus.rs | 2 +- tests/t1.ld | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/difftest/dpi_t1rocketemu/src/bus.rs b/difftest/dpi_t1rocketemu/src/bus.rs index 9f5a3aa59..e7e60bd88 100644 --- a/difftest/dpi_t1rocketemu/src/bus.rs +++ b/difftest/dpi_t1rocketemu/src/bus.rs @@ -36,7 +36,7 @@ impl ShadowBus { pub fn new() -> Self { const DDR_SIZE: usize = 0x80000000; const SCALAR_SIZE: usize = 0x20000000; - const SRAM_SIZE: usize = 0x00400000; + const SRAM_SIZE: usize = 0x40000000; Self { devices: [ diff --git a/tests/t1.ld b/tests/t1.ld index 1a8248c01..4ab04c2cb 100644 --- a/tests/t1.ld +++ b/tests/t1.ld @@ -5,7 +5,7 @@ MEMORY { SCALAR (RWX) : ORIGIN = 0x20000000, LENGTH = 512M /* put first to set it as default */ MMIO (RW) : ORIGIN = 0x00000000, LENGTH = 512M DDR (RW) : ORIGIN = 0x40000000, LENGTH = 2048M - SRAM (RW) : ORIGIN = 0xc0000000, LENGTH = 4M /* TODO: read from config */ + SRAM (RW) : ORIGIN = 0xc0000000, LENGTH = 1024M /* TODO: read from config */ } SECTIONS { From 1fdcd2f5afe3b427cd8972b75d6201984b701227 Mon Sep 17 00:00:00 2001 From: Avimitin Date: Mon, 18 Nov 2024 20:18:53 +0800 Subject: [PATCH 03/10] [nix] upgrade LLVM to 18 Signed-off-by: Avimitin --- nix/overlay.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/overlay.nix b/nix/overlay.nix index 4df089e9c..a08ee245d 100644 --- a/nix/overlay.nix +++ b/nix/overlay.nix @@ -3,7 +3,7 @@ final: prev: let - llvmForRVV_attrName = "llvmPackages_17"; # brand new clang with v0.12 rvv intrinsic support + llvmForRVV_attrName = "llvmPackages_18"; # brand new clang with v0.12 rvv intrinsic support rv32_pkgs = final.pkgsCross.riscv32-embedded; rv32_buildPkgs = rv32_pkgs.buildPackages; in From cd000a235c82bacf792875101208675565fcaa91 Mon Sep 17 00:00:00 2001 From: Avimitin Date: Wed, 20 Nov 2024 03:28:30 +0800 Subject: [PATCH 04/10] [ci] add bench case into ci Signed-off-by: Avimitin --- .../benchmark_dlen1024_vlen1024_fp/t1rocketemu.json | 7 +++++++ .../designs/benchmark_dlen128_vlen1024_fp/t1rocketemu.json | 7 +++++++ .../designs/benchmark_dlen256_vlen1024_fp/t1rocketemu.json | 7 +++++++ .../designs/benchmark_dlen512_vlen1024_fp/t1rocketemu.json | 7 +++++++ 4 files changed, 28 insertions(+) create mode 100644 .github/designs/benchmark_dlen1024_vlen1024_fp/t1rocketemu.json create mode 100644 .github/designs/benchmark_dlen128_vlen1024_fp/t1rocketemu.json create mode 100644 .github/designs/benchmark_dlen256_vlen1024_fp/t1rocketemu.json create mode 100644 .github/designs/benchmark_dlen512_vlen1024_fp/t1rocketemu.json diff --git a/.github/designs/benchmark_dlen1024_vlen1024_fp/t1rocketemu.json b/.github/designs/benchmark_dlen1024_vlen1024_fp/t1rocketemu.json new file mode 100644 index 000000000..00bdcd788 --- /dev/null +++ b/.github/designs/benchmark_dlen1024_vlen1024_fp/t1rocketemu.json @@ -0,0 +1,7 @@ +{ + "rvv_bench.ascii_to_utf32": -1, + "rvv_bench.byteswap": -1, + "rvv_bench.memcpy": -1, + "rvv_bench.memset": -1 +} + diff --git a/.github/designs/benchmark_dlen128_vlen1024_fp/t1rocketemu.json b/.github/designs/benchmark_dlen128_vlen1024_fp/t1rocketemu.json new file mode 100644 index 000000000..00bdcd788 --- /dev/null +++ b/.github/designs/benchmark_dlen128_vlen1024_fp/t1rocketemu.json @@ -0,0 +1,7 @@ +{ + "rvv_bench.ascii_to_utf32": -1, + "rvv_bench.byteswap": -1, + "rvv_bench.memcpy": -1, + "rvv_bench.memset": -1 +} + diff --git a/.github/designs/benchmark_dlen256_vlen1024_fp/t1rocketemu.json b/.github/designs/benchmark_dlen256_vlen1024_fp/t1rocketemu.json new file mode 100644 index 000000000..00bdcd788 --- /dev/null +++ b/.github/designs/benchmark_dlen256_vlen1024_fp/t1rocketemu.json @@ -0,0 +1,7 @@ +{ + "rvv_bench.ascii_to_utf32": -1, + "rvv_bench.byteswap": -1, + "rvv_bench.memcpy": -1, + "rvv_bench.memset": -1 +} + diff --git a/.github/designs/benchmark_dlen512_vlen1024_fp/t1rocketemu.json b/.github/designs/benchmark_dlen512_vlen1024_fp/t1rocketemu.json new file mode 100644 index 000000000..00bdcd788 --- /dev/null +++ b/.github/designs/benchmark_dlen512_vlen1024_fp/t1rocketemu.json @@ -0,0 +1,7 @@ +{ + "rvv_bench.ascii_to_utf32": -1, + "rvv_bench.byteswap": -1, + "rvv_bench.memcpy": -1, + "rvv_bench.memset": -1 +} + From 200f14b6fbbe59f6fe087dd56383673cb9dda93e Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 20 Nov 2024 14:56:04 +0000 Subject: [PATCH 05/10] [ci] update t1 test case cycle data --- .../t1rocketemu.json | 11 ++-- .../t1rocketemu.json | 11 ++-- .../t1rocketemu.json | 11 ++-- .../t1rocketemu.json | 11 ++-- .github/designs/blastoise/t1emu.json | 6 +- .github/designs/blastoise/t1rocketemu.json | 62 +++++++++---------- .github/designs/rookidee/t1emu.json | 4 +- .github/designs/rookidee/t1rocketemu.json | 34 +++++----- 8 files changed, 73 insertions(+), 77 deletions(-) diff --git a/.github/designs/benchmark_dlen1024_vlen1024_fp/t1rocketemu.json b/.github/designs/benchmark_dlen1024_vlen1024_fp/t1rocketemu.json index 00bdcd788..60165ceca 100644 --- a/.github/designs/benchmark_dlen1024_vlen1024_fp/t1rocketemu.json +++ b/.github/designs/benchmark_dlen1024_vlen1024_fp/t1rocketemu.json @@ -1,7 +1,6 @@ { - "rvv_bench.ascii_to_utf32": -1, - "rvv_bench.byteswap": -1, - "rvv_bench.memcpy": -1, - "rvv_bench.memset": -1 -} - + "rvv_bench.ascii_to_utf32": 229134, + "rvv_bench.byteswap": 390998, + "rvv_bench.memcpy": 671689, + "rvv_bench.memset": 285695 +} \ No newline at end of file diff --git a/.github/designs/benchmark_dlen128_vlen1024_fp/t1rocketemu.json b/.github/designs/benchmark_dlen128_vlen1024_fp/t1rocketemu.json index 00bdcd788..d6e06141e 100644 --- a/.github/designs/benchmark_dlen128_vlen1024_fp/t1rocketemu.json +++ b/.github/designs/benchmark_dlen128_vlen1024_fp/t1rocketemu.json @@ -1,7 +1,6 @@ { - "rvv_bench.ascii_to_utf32": -1, - "rvv_bench.byteswap": -1, - "rvv_bench.memcpy": -1, - "rvv_bench.memset": -1 -} - + "rvv_bench.ascii_to_utf32": 232277, + "rvv_bench.byteswap": 415827, + "rvv_bench.memcpy": 674728, + "rvv_bench.memset": 295430 +} \ No newline at end of file diff --git a/.github/designs/benchmark_dlen256_vlen1024_fp/t1rocketemu.json b/.github/designs/benchmark_dlen256_vlen1024_fp/t1rocketemu.json index 00bdcd788..cf26d4105 100644 --- a/.github/designs/benchmark_dlen256_vlen1024_fp/t1rocketemu.json +++ b/.github/designs/benchmark_dlen256_vlen1024_fp/t1rocketemu.json @@ -1,7 +1,6 @@ { - "rvv_bench.ascii_to_utf32": -1, - "rvv_bench.byteswap": -1, - "rvv_bench.memcpy": -1, - "rvv_bench.memset": -1 -} - + "rvv_bench.ascii_to_utf32": 230473, + "rvv_bench.byteswap": 401865, + "rvv_bench.memcpy": 673282, + "rvv_bench.memset": 289560 +} \ No newline at end of file diff --git a/.github/designs/benchmark_dlen512_vlen1024_fp/t1rocketemu.json b/.github/designs/benchmark_dlen512_vlen1024_fp/t1rocketemu.json index 00bdcd788..8bc226e43 100644 --- a/.github/designs/benchmark_dlen512_vlen1024_fp/t1rocketemu.json +++ b/.github/designs/benchmark_dlen512_vlen1024_fp/t1rocketemu.json @@ -1,7 +1,6 @@ { - "rvv_bench.ascii_to_utf32": -1, - "rvv_bench.byteswap": -1, - "rvv_bench.memcpy": -1, - "rvv_bench.memset": -1 -} - + "rvv_bench.ascii_to_utf32": 229558, + "rvv_bench.byteswap": 394622, + "rvv_bench.memcpy": 672189, + "rvv_bench.memset": 286880 +} \ No newline at end of file diff --git a/.github/designs/blastoise/t1emu.json b/.github/designs/blastoise/t1emu.json index c970c3f93..cc686bc48 100644 --- a/.github/designs/blastoise/t1emu.json +++ b/.github/designs/blastoise/t1emu.json @@ -13,11 +13,11 @@ "intrinsic.softmax": 7032, "rvv_bench.ascii_to_utf16": 11282, "rvv_bench.ascii_to_utf32": 4694, - "rvv_bench.byteswap": 19954, + "rvv_bench.byteswap": 20017, "rvv_bench.mandelbrot": 230851, - "rvv_bench.memcpy": 34534, + "rvv_bench.memcpy": 34718, "rvv_bench.memset": 11501, "rvv_bench.mergelines": 24842, "rvv_bench.strlen": 22697, - "rvv_bench.utf8_count": 151155 + "rvv_bench.utf8_count": 151165 } \ No newline at end of file diff --git a/.github/designs/blastoise/t1rocketemu.json b/.github/designs/blastoise/t1rocketemu.json index 4941279e3..4e74322fe 100644 --- a/.github/designs/blastoise/t1rocketemu.json +++ b/.github/designs/blastoise/t1rocketemu.json @@ -1,9 +1,9 @@ { - "asm.memcpy": 751, - "asm.mmm": 51749, - "asm.smoke": 8001, - "asm.strlen": 7986, - "asm.utf8_count": 205, + "asm.memcpy": 774, + "asm.mmm": 51794, + "asm.smoke": 8051, + "asm.strlen": 8009, + "asm.utf8_count": 232, "codegen.vaadd_vv": 170452, "codegen.vaadd_vx": 539363, "codegen.vaaddu_vv": 170452, @@ -499,30 +499,30 @@ "codegen.vxor_vx": 136518, "codegen.vzext_vf2": 14020, "codegen.vzext_vf4": 4333, - "intrinsic.conv2d_less_m2": 2498, - "intrinsic.linear_normalization": 3350, - "intrinsic.matmul": 65866, - "intrinsic.softmax": 6795, - "mlir.axpy_masked": 4048, - "mlir.conv": 125859, - "mlir.hello": 131, - "mlir.matmul": 56059, - "mlir.maxvl_tail_setvl_front": 700, - "mlir.rvv_vp_intrinsic_add": 466, - "mlir.rvv_vp_intrinsic_add_scalable": 807, - "mlir.stripmining": 8882, - "mlir.vectoradd": 13236, - "pytorch.demo": 31521, - "pytorch.matmul": 69793, - "rvv_bench.ascii_to_utf16": 677090, - "rvv_bench.ascii_to_utf32": 226918, - "rvv_bench.byteswap": 399524, - "rvv_bench.chacha20": 39957, - "rvv_bench.mandelbrot": 512683, - "rvv_bench.memcpy": 671955, - "rvv_bench.memset": 290725, - "rvv_bench.mergelines": 564159, - "rvv_bench.poly1305": 39957, - "rvv_bench.strlen": 219139, - "rvv_bench.utf8_count": 2283382 + "intrinsic.conv2d_less_m2": 2550, + "intrinsic.linear_normalization": 3373, + "intrinsic.matmul": 65918, + "intrinsic.softmax": 6824, + "mlir.axpy_masked": 4098, + "mlir.conv": 125881, + "mlir.hello": 175, + "mlir.matmul": 56109, + "mlir.maxvl_tail_setvl_front": 749, + "mlir.rvv_vp_intrinsic_add": 517, + "mlir.rvv_vp_intrinsic_add_scalable": 858, + "mlir.stripmining": 8931, + "mlir.vectoradd": 13281, + "pytorch.demo": 31524, + "pytorch.matmul": 69835, + "rvv_bench.ascii_to_utf16": 690528, + "rvv_bench.ascii_to_utf32": 230915, + "rvv_bench.byteswap": 399613, + "rvv_bench.chacha20": 40010, + "rvv_bench.mandelbrot": 512751, + "rvv_bench.memcpy": 672015, + "rvv_bench.memset": 290646, + "rvv_bench.mergelines": 561433, + "rvv_bench.poly1305": 40010, + "rvv_bench.strlen": 218969, + "rvv_bench.utf8_count": 2230705 } \ No newline at end of file diff --git a/.github/designs/rookidee/t1emu.json b/.github/designs/rookidee/t1emu.json index cbb3b39f9..d93820f7f 100644 --- a/.github/designs/rookidee/t1emu.json +++ b/.github/designs/rookidee/t1emu.json @@ -8,8 +8,8 @@ "mlir.stripmining": 27810, "rvv_bench.ascii_to_utf16": 16070, "rvv_bench.ascii_to_utf32": 6057, - "rvv_bench.byteswap": 43274, - "rvv_bench.memcpy": 46320, + "rvv_bench.byteswap": 43109, + "rvv_bench.memcpy": 46538, "rvv_bench.memset": 19350, "rvv_bench.mergelines": 38541, "rvv_bench.strlen": 34517, diff --git a/.github/designs/rookidee/t1rocketemu.json b/.github/designs/rookidee/t1rocketemu.json index 588881f09..614dbd545 100644 --- a/.github/designs/rookidee/t1rocketemu.json +++ b/.github/designs/rookidee/t1rocketemu.json @@ -1,6 +1,6 @@ { - "asm.mmm": 56295, - "asm.smoke": 7780, + "asm.mmm": 56340, + "asm.smoke": 7830, "codegen.vaadd_vv": 129499, "codegen.vaadd_vx": 393229, "codegen.vaaddu_vv": 129499, @@ -430,19 +430,19 @@ "codegen.vxor_vx": 98738, "codegen.vzext_vf2": 11522, "codegen.vzext_vf4": 3497, - "intrinsic.conv2d_less_m2": 2540, - "mlir.hello": 130, - "mlir.rvv_vp_intrinsic_add": 462, - "mlir.rvv_vp_intrinsic_add_scalable": 706, - "mlir.stripmining": 27825, - "rvv_bench.ascii_to_utf16": 678943, - "rvv_bench.ascii_to_utf32": 226997, - "rvv_bench.byteswap": 422035, - "rvv_bench.chacha20": 39957, - "rvv_bench.memcpy": 677231, - "rvv_bench.memset": 295653, - "rvv_bench.mergelines": 580218, - "rvv_bench.poly1305": 39957, - "rvv_bench.strlen": 235252, - "rvv_bench.utf8_count": 2346912 + "intrinsic.conv2d_less_m2": 2592, + "mlir.hello": 174, + "mlir.rvv_vp_intrinsic_add": 513, + "mlir.rvv_vp_intrinsic_add_scalable": 757, + "mlir.stripmining": 27874, + "rvv_bench.ascii_to_utf16": 692453, + "rvv_bench.ascii_to_utf32": 231013, + "rvv_bench.byteswap": 421946, + "rvv_bench.chacha20": 40010, + "rvv_bench.memcpy": 677194, + "rvv_bench.memset": 295581, + "rvv_bench.mergelines": 577576, + "rvv_bench.poly1305": 40010, + "rvv_bench.strlen": 235082, + "rvv_bench.utf8_count": 2294279 } \ No newline at end of file From 2205294134d69dd3582f3f693cad5fa6077fd61f Mon Sep 17 00:00:00 2001 From: Avimitin Date: Thu, 21 Nov 2024 19:18:58 +0800 Subject: [PATCH 06/10] fixup! fix sram Signed-off-by: Avimitin --- difftest/dpi_t1rocketemu/src/bus.rs | 2 +- tests/t1.ld | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/difftest/dpi_t1rocketemu/src/bus.rs b/difftest/dpi_t1rocketemu/src/bus.rs index e7e60bd88..2c1b07cd7 100644 --- a/difftest/dpi_t1rocketemu/src/bus.rs +++ b/difftest/dpi_t1rocketemu/src/bus.rs @@ -36,7 +36,7 @@ impl ShadowBus { pub fn new() -> Self { const DDR_SIZE: usize = 0x80000000; const SCALAR_SIZE: usize = 0x20000000; - const SRAM_SIZE: usize = 0x40000000; + const SRAM_SIZE: usize = 0x32000000; Self { devices: [ diff --git a/tests/t1.ld b/tests/t1.ld index 4ab04c2cb..266189630 100644 --- a/tests/t1.ld +++ b/tests/t1.ld @@ -5,7 +5,7 @@ MEMORY { SCALAR (RWX) : ORIGIN = 0x20000000, LENGTH = 512M /* put first to set it as default */ MMIO (RW) : ORIGIN = 0x00000000, LENGTH = 512M DDR (RW) : ORIGIN = 0x40000000, LENGTH = 2048M - SRAM (RW) : ORIGIN = 0xc0000000, LENGTH = 1024M /* TODO: read from config */ + SRAM (RW) : ORIGIN = 0xc0000000, LENGTH = 800M /* TODO: read from config */ } SECTIONS { From d4774421699099d65985ceb43598c5d9fa26cde2 Mon Sep 17 00:00:00 2001 From: Shupei Fan Date: Fri, 22 Nov 2024 13:30:54 +0000 Subject: [PATCH 07/10] [difftest] t1rocketemu: record EXIT_POS write (HACK!!!) --- difftest/dpi_t1rocketemu/src/dpi.rs | 3 +++ difftest/dpi_t1rocketemu/src/drive.rs | 15 +++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/difftest/dpi_t1rocketemu/src/dpi.rs b/difftest/dpi_t1rocketemu/src/dpi.rs index 0bad32f76..6c7ea6499 100644 --- a/difftest/dpi_t1rocketemu/src/dpi.rs +++ b/difftest/dpi_t1rocketemu/src/dpi.rs @@ -245,6 +245,9 @@ unsafe extern "C" fn axi_write_loadStoreAXI( info!("driver is ready to quit"); driver.success = true; driver.quit = true; + } else { + // hack + driver.record_mmio_hack(exit_data); } } }); diff --git a/difftest/dpi_t1rocketemu/src/drive.rs b/difftest/dpi_t1rocketemu/src/drive.rs index e10fef959..07e989761 100644 --- a/difftest/dpi_t1rocketemu/src/drive.rs +++ b/difftest/dpi_t1rocketemu/src/drive.rs @@ -11,6 +11,8 @@ use elf::{ ElfStream, }; use std::collections::HashMap; +use std::fs::File; +use std::io::Write as _; use std::os::unix::fs::FileExt; use std::{fs, path::Path}; use tracing::{debug, error, info, trace}; @@ -37,6 +39,8 @@ pub(crate) struct Driver { shadow_bus: ShadowBus, + mmio_hack_file: Option, + pub(crate) quit: bool, pub(crate) success: bool, } @@ -47,6 +51,8 @@ impl Driver { let (e_entry, shadow_bus, _fn_sym_tab) = Self::load_elf(&args.elf_file).expect("fail creating simulator"); + let mmio_hack_file = File::create("mmio_hack.jsonl").unwrap(); + Self { scope, @@ -58,6 +64,8 @@ impl Driver { shadow_bus, + mmio_hack_file: Some(mmio_hack_file), + quit: false, success: false, } @@ -130,6 +138,13 @@ impl Driver { Ok((elf.ehdr.e_entry, mem, fn_sym_tab)) } + pub fn record_mmio_hack(&mut self, value: u32) { + let time = get_t(); + let mmio_hack = self.mmio_hack_file.as_mut().unwrap(); + mmio_hack.write(format!("{{\"cycle\": {time}, \"value\": {value}}}\n").as_bytes()).unwrap(); + mmio_hack.flush().unwrap(); + } + pub fn update_commit_cycle(&mut self) { self.last_commit_cycle = get_t(); } From ee2dd8cf4aa2a1510206904ea3ca8a33437c9615 Mon Sep 17 00:00:00 2001 From: Shupei Fan Date: Fri, 22 Nov 2024 13:40:34 +0000 Subject: [PATCH 08/10] [tests] record rvv_bench cycles by mmio (HACK!!!) --- tests/rvv_bench/t1_runtime.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/rvv_bench/t1_runtime.patch b/tests/rvv_bench/t1_runtime.patch index bf07e1f1a..7b4c13294 100644 --- a/tests/rvv_bench/t1_runtime.patch +++ b/tests/rvv_bench/t1_runtime.patch @@ -2,7 +2,7 @@ diff --git a/bench/bench.h b/bench/bench.h index af1c839..661e8df 100644 --- a/bench/bench.h +++ b/bench/bench.h -@@ -120,45 +120,11 @@ static void +@@ -120,45 +120,13 @@ static void bench_run(Bench *benches, size_t nBenches) { for (Bench *b = benches; b != benches + nBenches; ++b) { @@ -43,7 +43,9 @@ index af1c839..661e8df 100644 - print(f,bench_time(n, *i, *b))(",")(flush,); - } - print("],\n")(flush,); ++ *(int*)0x40000000 = 1; + bench_time(N, *i, *b); ++ *(int*)0x40000000 = 2; } - print("]\n},\n"); } From 98e9b729a5c494f92023836682d584cf41656bb5 Mon Sep 17 00:00:00 2001 From: Shupei Fan Date: Fri, 22 Nov 2024 13:41:12 +0000 Subject: [PATCH 09/10] [nix] copy mmio_hack.jsonl (HACK!!!) --- nix/t1/run/run-vcs-emu.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/t1/run/run-vcs-emu.nix b/nix/t1/run/run-vcs-emu.nix index d4b2a3c08..1be629679 100644 --- a/nix/t1/run/run-vcs-emu.nix +++ b/nix/t1/run/run-vcs-emu.nix @@ -81,6 +81,9 @@ stdenvNoCC.mkDerivation (finalAttr: { mv perf.json $out/ fi + # TODO: remove the hack + cp -v mmio_hack.jsonl "$out" + cp -v cm.log "$out" cp -vr cm.vdb "$out" From 861094837d2bdcb1e61398d6d6fe2dac6d604f48 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 22 Nov 2024 14:29:26 +0000 Subject: [PATCH 10/10] [ci] update t1 test case cycle data --- .../t1rocketemu.json | 8 ++++---- .../t1rocketemu.json | 8 ++++---- .../t1rocketemu.json | 8 ++++---- .../t1rocketemu.json | 8 ++++---- .github/designs/blastoise/t1rocketemu.json | 18 +++++++++--------- .github/designs/rookidee/t1rocketemu.json | 16 ++++++++-------- 6 files changed, 33 insertions(+), 33 deletions(-) diff --git a/.github/designs/benchmark_dlen1024_vlen1024_fp/t1rocketemu.json b/.github/designs/benchmark_dlen1024_vlen1024_fp/t1rocketemu.json index 60165ceca..5f48f598f 100644 --- a/.github/designs/benchmark_dlen1024_vlen1024_fp/t1rocketemu.json +++ b/.github/designs/benchmark_dlen1024_vlen1024_fp/t1rocketemu.json @@ -1,6 +1,6 @@ { - "rvv_bench.ascii_to_utf32": 229134, - "rvv_bench.byteswap": 390998, - "rvv_bench.memcpy": 671689, - "rvv_bench.memset": 285695 + "rvv_bench.ascii_to_utf32": 226749, + "rvv_bench.byteswap": 391077, + "rvv_bench.memcpy": 589350, + "rvv_bench.memset": 285597 } \ No newline at end of file diff --git a/.github/designs/benchmark_dlen128_vlen1024_fp/t1rocketemu.json b/.github/designs/benchmark_dlen128_vlen1024_fp/t1rocketemu.json index d6e06141e..5aa2b1ad5 100644 --- a/.github/designs/benchmark_dlen128_vlen1024_fp/t1rocketemu.json +++ b/.github/designs/benchmark_dlen128_vlen1024_fp/t1rocketemu.json @@ -1,6 +1,6 @@ { - "rvv_bench.ascii_to_utf32": 232277, - "rvv_bench.byteswap": 415827, - "rvv_bench.memcpy": 674728, - "rvv_bench.memset": 295430 + "rvv_bench.ascii_to_utf32": 229892, + "rvv_bench.byteswap": 415921, + "rvv_bench.memcpy": 592239, + "rvv_bench.memset": 295276 } \ No newline at end of file diff --git a/.github/designs/benchmark_dlen256_vlen1024_fp/t1rocketemu.json b/.github/designs/benchmark_dlen256_vlen1024_fp/t1rocketemu.json index cf26d4105..a659f5991 100644 --- a/.github/designs/benchmark_dlen256_vlen1024_fp/t1rocketemu.json +++ b/.github/designs/benchmark_dlen256_vlen1024_fp/t1rocketemu.json @@ -1,6 +1,6 @@ { - "rvv_bench.ascii_to_utf32": 230473, - "rvv_bench.byteswap": 401865, - "rvv_bench.memcpy": 673282, - "rvv_bench.memset": 289560 + "rvv_bench.ascii_to_utf32": 228089, + "rvv_bench.byteswap": 401959, + "rvv_bench.memcpy": 590978, + "rvv_bench.memset": 289402 } \ No newline at end of file diff --git a/.github/designs/benchmark_dlen512_vlen1024_fp/t1rocketemu.json b/.github/designs/benchmark_dlen512_vlen1024_fp/t1rocketemu.json index 8bc226e43..7085d29f0 100644 --- a/.github/designs/benchmark_dlen512_vlen1024_fp/t1rocketemu.json +++ b/.github/designs/benchmark_dlen512_vlen1024_fp/t1rocketemu.json @@ -1,6 +1,6 @@ { - "rvv_bench.ascii_to_utf32": 229558, - "rvv_bench.byteswap": 394622, - "rvv_bench.memcpy": 672189, - "rvv_bench.memset": 286880 + "rvv_bench.ascii_to_utf32": 227173, + "rvv_bench.byteswap": 394703, + "rvv_bench.memcpy": 589878, + "rvv_bench.memset": 286745 } \ No newline at end of file diff --git a/.github/designs/blastoise/t1rocketemu.json b/.github/designs/blastoise/t1rocketemu.json index 4e74322fe..bb4f88c25 100644 --- a/.github/designs/blastoise/t1rocketemu.json +++ b/.github/designs/blastoise/t1rocketemu.json @@ -514,15 +514,15 @@ "mlir.vectoradd": 13281, "pytorch.demo": 31524, "pytorch.matmul": 69835, - "rvv_bench.ascii_to_utf16": 690528, - "rvv_bench.ascii_to_utf32": 230915, - "rvv_bench.byteswap": 399613, + "rvv_bench.ascii_to_utf16": 690179, + "rvv_bench.ascii_to_utf32": 228538, + "rvv_bench.byteswap": 399715, "rvv_bench.chacha20": 40010, - "rvv_bench.mandelbrot": 512751, - "rvv_bench.memcpy": 672015, - "rvv_bench.memset": 290646, - "rvv_bench.mergelines": 561433, + "rvv_bench.mandelbrot": 512811, + "rvv_bench.memcpy": 589522, + "rvv_bench.memset": 290522, + "rvv_bench.mergelines": 563328, "rvv_bench.poly1305": 40010, - "rvv_bench.strlen": 218969, - "rvv_bench.utf8_count": 2230705 + "rvv_bench.strlen": 219124, + "rvv_bench.utf8_count": 2230881 } \ No newline at end of file diff --git a/.github/designs/rookidee/t1rocketemu.json b/.github/designs/rookidee/t1rocketemu.json index 614dbd545..fe6718b80 100644 --- a/.github/designs/rookidee/t1rocketemu.json +++ b/.github/designs/rookidee/t1rocketemu.json @@ -435,14 +435,14 @@ "mlir.rvv_vp_intrinsic_add": 513, "mlir.rvv_vp_intrinsic_add_scalable": 757, "mlir.stripmining": 27874, - "rvv_bench.ascii_to_utf16": 692453, - "rvv_bench.ascii_to_utf32": 231013, - "rvv_bench.byteswap": 421946, + "rvv_bench.ascii_to_utf16": 692008, + "rvv_bench.ascii_to_utf32": 228630, + "rvv_bench.byteswap": 422042, "rvv_bench.chacha20": 40010, - "rvv_bench.memcpy": 677194, - "rvv_bench.memset": 295581, - "rvv_bench.mergelines": 577576, + "rvv_bench.memcpy": 594872, + "rvv_bench.memset": 295446, + "rvv_bench.mergelines": 579448, "rvv_bench.poly1305": 40010, - "rvv_bench.strlen": 235082, - "rvv_bench.utf8_count": 2294279 + "rvv_bench.strlen": 235255, + "rvv_bench.utf8_count": 2294504 } \ No newline at end of file