Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0884ba6fcb | ||
|
|
fd2fe71ca1 | ||
|
|
8d71815809 | ||
|
|
63f476eb83 | ||
|
|
0711f5f7a3 | ||
|
|
97227577b5 | ||
|
|
3cd6aacc17 | ||
|
|
e4f8f3481c | ||
|
|
c7f713c71e | ||
|
|
b06e345706 | ||
|
|
8a635b5fcb | ||
|
|
f23b2a3fcc | ||
|
|
ac34a8f5f5 |
@@ -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);
|
||||
|
||||
@@ -19,7 +19,7 @@ using float_type = float16_t;
|
||||
|
||||
// Generate kernel for the Hopper-style SMEM-decoupled tensor core. This uses
|
||||
// asynchronous HGMMA and HGMMA_WAIT instructions.
|
||||
#define TENSOR_HOPPER 0
|
||||
#define TENSOR_HOPPER 1
|
||||
|
||||
// Constraints on parameters:
|
||||
// * Memory:
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef NUM_CORES
|
||||
#define NUM_CORES 8
|
||||
#define NUM_CORES 4
|
||||
#endif
|
||||
|
||||
#ifndef NUM_WARPS
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef CORES_PER_CLUSTER
|
||||
#define CORES_PER_CLUSTER 8
|
||||
#define CORES_PER_CLUSTER 4
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user