Question: In this lab you will use OMP to parallelize the multiplication of two matrices B and C of type double, A, B and C are

In this lab you will use OMP to parallelize the multiplication of two matrices B and C of type double, A, B and C are all M x M matrices, where M 25. Implement the following functions double** allocateMat (?nt sz) ; // Returns pointer to a matrix void assignMat (double** mat, int sz) ; //All entries 2.0 double** matMult(double**, double**, int sz) //Multiply void fxeeMat (double**, int sz); I free a matrix void printMat double**, int sz); Use the omp get ntime() API to display the elapsed time for the multiplication operation only. Parallelize memory allocation and multiplication. The function matMult) allocates memory to the product matrix and returns a pointer to the matrix (of pointers). Pay attention to the scopes for all variables. Use static scheduling and different chunksize (from 1-4). Obtain elapsed times for the various schedules
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
