From 5d750743a6ef4088b638f03de52148e7dd1cff0b Mon Sep 17 00:00:00 2001 From: p8sljnpht <3178612685@qq.com> Date: Sat, 23 Nov 2024 10:50:10 +0800 Subject: [PATCH] ADD file via upload --- Chen/CHEN_4.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Chen/CHEN_4.c diff --git a/Chen/CHEN_4.c b/Chen/CHEN_4.c new file mode 100644 index 0000000..882b53b --- /dev/null +++ b/Chen/CHEN_4.c @@ -0,0 +1,59 @@ +#include +#include +#include +#include +#define SIZE 1024 + +void matmul_optimized(float** A, float** B, float** C, int n); +int main() { + int n = SIZE; + + // 分配内存空间 + float** A = (float**)malloc(sizeof(float*) * n); + float** B = (float**)malloc(sizeof(float*) * n); + float** C = (float**)malloc(sizeof(float*) * n); + int i, j; + for(i=0; i