Write a C program that multiplies two squared matrices A and B of size N (NxN). The matrices consist of double-precision elements. The program should accept the matrix size, N, as a parameter; initialize the matrices using a random number generator; and find the resulting matrix C=A*B. The resulting matrix should be written to a binary file (please delete this file after the execution of your program).
Create two executables, one created by the gcc compiler (optimization level –3) and one created by the Intel compiler (with optimization level –fast).
(a) Measure the entire program execution times as a function of matrix size (N=512, 1024, 1536, and 2048). Plot your results as a function of N (plot should include two lines, one for the gcc executable and one for the icc executable).
(b) Instrument your code and measure the execution time of the critical loop that finds the resulting matrix. Plot your results as a function of N.
5 freelancers are bidding on average $43 for this job
I am application developer with 3+ years of experience. I am interested in this job I am proficient in C programming and can do it in 1 day . I am available for the interview.