Commit Graph

2464 Commits

Author SHA1 Message Date
Hansung Kim
5c298c81df sgemm_tg: Use reg mapping functions 2024-05-12 22:22:54 -07:00
Hansung Kim
8a521a1de8 Add 8-lane operand mapping 2024-05-10 23:23:11 -07:00
Richard Yan
33066af56e cisc gemmini 2024-05-08 15:46:20 -07:00
Hansung Kim
6af0c305ea Fix path to OBJCOPY 2024-05-08 13:27:11 -07:00
Hansung Kim
6ba6a1e2e5 Merge branch 'kernels' into tensor_core 2024-05-08 13:25:31 -07:00
Hansung Kim
5821bfd10d Repeat vx_wmma issue & hardcode dst address 2024-05-08 13:22:26 -07:00
Hansung Kim
7775830814 Hardcode chipyard device addresses 2024-05-07 16:30:30 -07:00
Hansung Kim
b4c812f9f8 Write expected_C to a binary file 2024-05-05 18:27:56 -07:00
joshua
5bd25985c6 i kinda forgot most of changes 2024-05-04 23:01:47 -07:00
Richard Yan
4db59446f3 Merge branch 'kernels' of https://github.com/hansungk/vortex-private into kernels 2024-05-02 15:16:57 -07:00
Richard Yan
1b6ebf86a1 update gemmini kernels 2024-05-02 15:16:55 -07:00
Hansung Kim
a606a9ef42 common.mk: properly handle unspecified CONFIG 2024-04-29 17:14:28 -07:00
Richard Yan
01f4a69ae9 dma mvout, double buffering & other opts 2024-04-28 01:18:51 -07:00
Richard Yan
d21e7b92c7 internal accumulation, forced rematerialization, better unrolling 2024-04-25 15:28:12 -07:00
Richard Yan
a44edf2b65 Merge branch 'kernels' of https://github.com/hansungk/vortex-private into kernels 2024-04-24 22:10:40 -07:00
Richard Yan
6eafa2de54 write operands to elf 2024-04-24 22:09:30 -07:00
Hansung Kim
df881fd69f Generate separate ELF for radiance 2024-04-24 21:10:21 -07:00
Hansung Kim
793779aa6c sgemm_wg: 128x128 config 2024-04-24 21:10:21 -07:00
Hansung Kim
689043b45e Add regression flops 2024-04-24 21:10:21 -07:00
Hansung Kim
6cbfbfb856 sgemm_wg: Output CPU data to binary 2024-04-24 21:10:21 -07:00
Richard Yan
4e9855dc33 highly unrolled a/b load 2024-04-16 22:19:30 -07:00
Richard Yan
449d99f0bb dram gemm kernel 2024-04-16 17:15:22 -07:00
Richard Yan
99621a0df9 Merge branch 'kernels' of https://github.com/hansungk/vortex-private into kernels 2024-04-15 10:22:19 -07:00
Richard Yan
041d49fb58 update gemmini only kernel 2024-04-15 10:22:00 -07:00
Richard Yan
0bb7aeb45b add gpu+gemmini gemm kernel 2024-04-15 10:13:37 -07:00
Richard Yan
d8eddb21ea add gemmini dependency 2024-04-15 10:04:54 -07:00
Hansung Kim
37a60b1141 sgemm_wg: Output C result to binary 2024-04-14 12:36:06 -07:00
Hansung Kim
3383b70732 sgemm_wg: Hardcode device address 2024-04-14 12:36:00 -07:00
Richard Yan
7bf72c9568 cycle counting for fence 2024-04-09 19:53:17 -07:00
Hansung Kim
93a00101ae sgemm_wg: revert to faster params 2024-04-04 21:06:14 -07:00
Richard Yan
84a31f3384 thread parallel data loading for word strided bank 2024-04-01 11:10:32 -07:00
Richard Yan
e6db1a83af Merge branch 'kernels' of https://github.com/hansungk/vortex-private into kernels 2024-04-01 11:09:43 -07:00
Hansung Kim
b0c1f77388 vx_start.S: Swizzle stack space
Striding stack space for threads by power-of-two risks possibilities of bank
conflicts or cache aliasing problems.  Add an extra offset of 4 bytes to avoid
this.
2024-03-29 12:26:14 -07:00
Hansung Kim
fa2b6e2ad0 sgemm_wg: Explicitly limit unroll to reduce stack spilling
This needs to be done case-by-case for different BK/TM/TN combinations and
examining the assembly.
2024-03-29 02:48:29 -07:00
Hansung Kim
537b97eb20 common.mk: Don't clean all *.elf 2024-03-28 20:17:26 -07:00
Hansung Kim
e4eec8ab4d vx_spawn.c: Handle num_clusters > 1
WIP: still assumes num_tasks is divisible by num_cluster
2024-03-28 20:16:44 -07:00
Hansung Kim
a9b0814211 sgemm_wg: Document tiling parameter constraints 2024-03-28 18:17:00 -07:00
Hansung Kim
9673db4e8c sgemm_wg: Fix possible divide-by-0 2024-03-28 17:35:47 -07:00
joshua
d8f9359fae test case update 2024-03-28 13:04:02 -07:00
joshua
08d7721e11 annoying swizzling problems 2024-03-28 03:00:15 -07:00
Hansung Kim
9555b790e7 sgemm_wg: ifdef-guard cluster specific code 2024-03-27 22:45:51 -07:00
Hansung Kim
09822764e7 sgemm_wg: Remove software-based barrier implementation
Intra-cluster barrier is now implemented in hardware, transparent to the ISA.
2024-03-27 22:43:45 -07:00
Hansung Kim
870846f20f vx_spawn.c: Create separate vx_spawn_tasks_contiguous 2024-03-27 15:38:52 -07:00
Hansung Kim
fa6adceb7e vecaddx: Hardcode args/input device address to match chipyard
Don't use mem_alloc/mem_free API
2024-03-27 15:15:52 -07:00
Hansung Kim
4e834f2103 vx_spawn.c: Rewrite cluster-based vx_spawn_tasks variant
Implements round-robin allocation of warps to cores & maintains contiguous
thread ID allocation to neighboring threads.  Also handles partially-enabled
remainder warp logic.

TODO: Hardcodes only 1 cluster in the system.
2024-03-27 15:14:45 -07:00
joshua
e16584ddd9 bleh still not work 2024-03-27 00:26:04 -07:00
Hansung Kim
df1f7f242a vx_spawn.c: Implement spawn_tasks_cluster_rem_stub 2024-03-27 00:00:44 -07:00
Richard Yan
b88dbd7a83 add cycle count and multi core support 2024-03-26 16:43:49 -07:00
Hansung Kim
b545809496 vecaddx: Use -DRADIANCE 2024-03-26 16:42:36 -07:00
Hansung Kim
4d2c0084d1 common.mk: Compile separate cluster ELF
... using -DRADIANCE, which the kernel C code use explicitly to switch between
vx_spawn_tasks and vx_spawn_tasks_cluster.  This is to ease running both simX
and Chipyard simulations without mixing up binaries.
2024-03-26 16:37:44 -07:00