Skip to content

Commit f35a854

Browse files
committed
rename, add todo
1 parent 63d9b6f commit f35a854

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

cmat.h

+3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
#include "cblas.h"
1212
#endif
1313

14+
#include <stdint.h>
1415
#define shape_uint uint32_t
16+
#define shape_int int32_t
17+
// TODO: refactor slice to shape_int
1518

1619

1720
struct int_cmat {
File renamed without changes.

main.c

+7-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66

77
int main() {
88
double_cmat A, B, C;
9-
int AH = 3;
10-
int AW = 3;
9+
int AH = 3*7800;
10+
int AW = 3*7800;
1111
int BH = AW;
12-
int BW = 6;
12+
int BW = 6*7800;
13+
//int AH = 32*1024;
14+
//int AW = 32*1024;
15+
//int BH = AW;
16+
//int BW = 32*1024;
1317
int CH = AH;
1418
int CW = BW;
1519
printf("performing %d x %d x %d matmul...\n", AH, AW, BW);

matmul.c

+1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ int matmul_double_recursive_bilinear(double_cmat matC, double_cmat matA, double_
244244
}
245245

246246
int matmul_double_schwartz2024(double_cmat matC, double_cmat matA, double_cmat matB){
247+
// TODO: improve with slice contiguous
247248
if (!(matA.shape[0] == matA.shape[1] && matA.shape[1] == matB.shape[0] && matB.shape[0] == matB.shape[1] && matA.shape[0]%2==0)) {
248249
return -1;
249250
}

0 commit comments

Comments
 (0)