37 for (i = 0; i < ni; i++)
38 for (j = 0; j < nj; j++)
40 for (i = 0; i < ni; i++)
41 for (j = 0; j < nk; j++)
43 for (i = 0; i < nk; i++)
44 for (j = 0; j < nj; j++)
59 for (i = 0; i < ni; i++)
60 for (j = 0; j < nj; j++) {
72 void kernel_gemm(
int ni,
int nj,
int nk,
89 for (i = 0; i <
_PB_NI; i++) {
90 for (j = 0; j <
_PB_NJ; j++)
92 for (k = 0; k <
_PB_NK; k++) {
93 for (j = 0; j <
_PB_NJ; j++)
94 C[i][j] += alpha *
A[i][k] *
B[k][j];
102 int main(
int argc,
char** argv)
126 kernel_gemm (ni, nj, nk,
#define POLYBENCH_ARRAY(x)
#define POLYBENCH_DUMP_BEGIN(s)
#define POLYBENCH_FREE_ARRAY(x)
static void init_array(int ni, int nj, int nk, DATA_TYPE *alpha, DATA_TYPE *beta, DATA_TYPE POLYBENCH_2D(C, NI, NJ, ni, nj), DATA_TYPE POLYBENCH_2D(A, NI, NK, ni, nk), DATA_TYPE POLYBENCH_2D(B, NK, NJ, nk, nj))
This version is stamped on May 10, 2016.
int main(int argc, char **argv)
#define POLYBENCH_2D(var, dim1, dim2, ddim1, ddim2)
__attribute__((noinline))
Convert the given fixedpt number to a decimal string.
static void print_array(int ni, int nj, DATA_TYPE POLYBENCH_2D(C, NI, NJ, ni, nj))
static const uint32_t k[]
#define POLYBENCH_DUMP_START
#define POLYBENCH_2D_ARRAY_DECL(var, type, dim1, dim2, ddim1, ddim2)
#define DATA_PRINTF_MODIFIER
#define polybench_prevent_dce(func)
#define POLYBENCH_DUMP_TARGET
#define POLYBENCH_DUMP_END(s)
#define POLYBENCH_DUMP_FINISH
#define polybench_stop_instruments
#define polybench_print_instruments
#define polybench_start_instruments