Question: using openMP I need proof of screen shot Using the matmul.c attached to Standards and Grading Criteria, insert OpenMP directives to improve the performance only
using openMP
I need proof of screen shot
Using the matmul.c attached to Standards and Grading Criteria, insert OpenMP directives to improve the performance only within the matmul function. Enhance the comments throughout.
Clearly identify, in your report, the execution time of your implementation the algorithm.
#include#include /////////////////////////////////////////////////////////////////////////////// // int main( int argc, char *argv[] ) // Author: Dr. Richard A. Goodrum, Ph.D. // Date: 16September 2017 // Description: Generates two matrices and then calls matmul to multiply them. // Finally, it verifies that the results are correct. // // Parameters: // argc I/P int The number of arguments on the command line // argv I/P char *[] The arguments on the command line // main O/P int Status code /////////////////////////////////////////////////////////////////////////////// #define L (16*1024) #define M (16*1024) #define N (16*1024) float A[L*M], B[M*N], C[L*N]; int main( int argc, char *argv[] ) { int i, j, k; for( i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
