15 Commits

Author SHA1 Message Date
Virgo-AE Eval
c24585570d Merge branch 'ae' into ae-flash-virgo 2025-02-07 14:53:04 -08:00
Richard Yan
8071faf7c2 Merge branch 'ae' into ae-flash-virgo 2025-01-31 03:53:39 -08:00
Richard Yan
a4bd41392c Merge branch 'ae' into ae-flash-virgo 2025-01-30 23:42:05 -08:00
Hansung Kim
692f3dddff Merge branch 'ae' into ae-flash-virgo 2025-01-30 13:25:00 -08:00
Hansung Kim
c75ed0d531 Merge branch 'ae' into ae-flash-virgo 2025-01-30 01:49:05 -08:00
Hansung Kim
96500e0abc Turn off TENSOR_HOPPER for Virgo flash 2025-01-30 01:23:01 -08:00
Hansung Kim
4f12227327 Increase SMEM size for flash 2025-01-30 01:17:38 -08:00
Hansung Kim
efd2d232fe Merge branch 'ae' into ae-flash-virgo 2025-01-30 01:16:23 -08:00
Hansung Kim
b97df2ce6a Switch to fp32 for flash 2025-01-30 01:12:32 -08:00
Hansung Kim
e4f8f3481c Merge branch 'ae' into ae-hopper 2025-01-30 01:05:31 -08:00
Hansung Kim
c7f713c71e Merge branch 'ae' into ae-hopper 2025-01-30 00:49:23 -08:00
Hansung Kim
b06e345706 Merge branch 'ae' into ae-hopper 2025-01-30 00:35:10 -08:00
Hansung Kim
8a635b5fcb Set TENSOR_HOPPER to 1, add missing markers 2025-01-30 00:34:13 -08:00
Richard Yan
f23b2a3fcc Merge branch 'ae' into ae-hopper 2025-01-29 23:31:21 -08:00
Richard Yan
ac34a8f5f5 hopper changes 2025-01-29 22:22:34 -08:00
3 changed files with 8 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
PROJECT = flash_attention
VX_SRCS = kernel.cpp
# VX_SRCS = kernel.cpp
# VX_SRCS = kernel.gemmini.warpspec.cpp
# VX_SRCS = kernel.gemmini.cpp
VX_SRCS = kernel.gemmini.cpp
VX_INCLUDES = flash_impl.hpp ../sgemm_tcore/sgemm_impl.hpp
OPTS ?= -n16

View File

@@ -17,9 +17,9 @@ constexpr uint32_t ROWMAX_SETS = 3;
// constexpr bool WARP_SPECIALIZED = true;
// constexpr bool GEMMINI_WARP_SPECIALIZED = false;
// constexpr bool TENSOR_CORE = true;
constexpr bool WARP_SPECIALIZED = true;
constexpr bool WARP_SPECIALIZED = false;
constexpr bool GEMMINI_WARP_SPECIALIZED = false;
constexpr bool TENSOR_CORE = true;
constexpr bool TENSOR_CORE = false;
// temporary safety stop for wrong configs
static_assert(NUM_CORES == 4);

View File

@@ -95,6 +95,8 @@ void kernel_body(int task_id, kernel_arg_t *__UNIFORM__ arg) {
constexpr uint32_t quartile = (128 << 10) >> 2; // 128KB / 4
static_assert((quartile * 4) == SMEM_SIZE, "wrong quartile constant");
MARK_BEG();
constexpr uint32_t smem_a_offset = 0;
constexpr uint32_t smem_a_dbuf_offset = 1 * quartile;
constexpr uint32_t smem_b_offset =
@@ -119,6 +121,8 @@ void kernel_body(int task_id, kernel_arg_t *__UNIFORM__ arg) {
threadblocks_per_cluster, threadblock_id_in_cluster,
sharedmem_per_threadblock);
MARK_END();
float *gmem_tmp_d0 = reinterpret_cast<float *>(0xd0000000UL);
float *gmem_tmp_d1 = reinterpret_cast<float *>(0xd1000000UL);
float *gmem_tmp_d2 = reinterpret_cast<float *>(0xd2000000UL);