MCPcopy Create free account
hub / github.com/AdvancedCompiler/AdvancedCompiler / Mul_Matrix

Function Mul_Matrix

code/Chapter12/mympi.h:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 }
29}
30void Mul_Matrix(float *A,float *B,float *C,int m1,int n1,int n2){
31 int i,j,k,temp;
32 for (i = 0; i < m1; i++){
33 for (j = 0; j < n2; j++){
34 temp =0;
35 for (k = 0; k < n1; k++){
36 temp += A[i * n1 + k] * B[k * n2 + j];
37 }
38 C[i * n2 + j]+= temp;
39 }
40 }
41}
42
43void Matrix_cannon_scatter(int N,int id,int num,int part,float *source_matrix,float *target_matrix,MPI_Comm MPI_COMM_CART){
44 float *matrixpool;//用于分发矩阵的一维向量

Callers 2

mainFunction · 0.70
Verify_matrix_cFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected