sgemm_impl: Parameterize BM on NUM_CORES

This commit is contained in:
Hansung Kim
2024-09-08 15:29:15 -07:00
parent 443a37be6c
commit 30a4d15cde

View File

@@ -29,7 +29,7 @@ using float_type = float16_t;
// (BM*BN) / (TM*TN) == threadblock size >= NT * CORES_PER_CLUSTER
// * Combining BM * BK >= (BM*BN) / (TM*TN) == threadblock yields
// BM <= BK*TM*TN
#define BM 128
#define BM ((NUM_CORES == 8) ? 128 : 64)
#define BN 64
#if (FP_SIZE == 32)
#define BK 64