From 6c050e832f6757c478b47aaaa766e9ac746b0369 Mon Sep 17 00:00:00 2001 From: p8sljnpht <3178612685@qq.com> Date: Sat, 23 Nov 2024 10:49:36 +0800 Subject: [PATCH] ADD file via upload --- chen/CHEN_3.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 chen/CHEN_3.c diff --git a/chen/CHEN_3.c b/chen/CHEN_3.c new file mode 100644 index 0000000..210cb7b --- /dev/null +++ b/chen/CHEN_3.c @@ -0,0 +1,53 @@ +#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