-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63207c4
commit d1b52aa
Showing
8 changed files
with
58 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#pragma once | ||
|
||
#include "gemm_kernel.h" | ||
// #include "gemm_occamy_baseline.h" | ||
// #include "gemm_occamy_1dpipe.h" | ||
#include "gemm_occamy_2dpipe.h" | ||
#ifdef OCCAMY | ||
// #include "gemm_baseline.h" | ||
// #include "gemm_1dpipe.h" | ||
#include "gemm_2dpipe.h" | ||
#endif |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#define FLOAT_T fp64 | ||
#include "gemm_2dpipe_tpl.h" | ||
#undef FLOAT_T | ||
|
||
#define FLOAT_T fp32 | ||
#include "gemm_2dpipe_tpl.h" | ||
#undef FLOAT_T | ||
|
||
#define FLOAT_T fp16 | ||
#include "gemm_2dpipe_tpl.h" | ||
#undef FLOAT_T | ||
|
||
#define FLOAT_T fp8 | ||
#include "gemm_2dpipe_tpl.h" | ||
#undef FLOAT_T |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include "gemm_decls.h" | ||
|
||
#ifndef FLOAT_T | ||
#error "Define FLOAT_T to use this template." | ||
#endif | ||
|
||
// Instantiate template code | ||
#define USE_C2C_TILES true | ||
|
||
#define IS_DM_CORE true | ||
#include "gemm_tiling_2dpipe_tpl.h" | ||
#undef IS_DM_CORE | ||
|
||
#define IS_DM_CORE false | ||
#include "gemm_tiling_2dpipe_tpl.h" | ||
#undef IS_DM_CORE | ||
|
||
#undef USE_C2C_TILES | ||
|
||
#ifndef SNBLAS_GEMM | ||
#define SNBLAS_GEMM(float_t) CONCAT(snblas_gemm_, float_t) | ||
#endif | ||
|
||
void SNBLAS_GEMM(FLOAT_T) (const SnblasGemmInfo info, const SNBLAS_GEMM_ARGS(FLOAT_T) args, bool bench) { | ||
if (snrt_is_dm_core()) { | ||
SNBLAS_GEMM_TILING(true, FLOAT_T)(info, args, bench); | ||
} else { | ||
SNBLAS_GEMM_TILING(false, FLOAT_T)(info, args, bench); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters