From d3edcf589ac9892265e180165fc57cac3b9ea401 Mon Sep 17 00:00:00 2001 From: p8sljnpht <3178612685@qq.com> Date: Sat, 23 Nov 2024 10:50:02 +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