Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Optimize the following dgemm matrix multiplication function by writing function

ID: 3834389 • Letter: O

Question

Optimize the following dgemm matrix multiplication function by writing function or functions that will combine the techniques of unrolling (superscalar), blocking, and intrinsic.

Note: The execution command ./a.out corr in the terminal is used to check the correctness of the algorithm. It must be checked in order to be counted as valid.

Note: You may not import external libraries or resources.

Note: Let this file be named dgemm.c.

Explanation / Answer

#include using namespace std; int main() { int a[10][10], b[10][10], mult[10][10], r1, c1, r2, c2, i, j, k; cout > r1 >> c1; cout > r2 >> c2; // If column of first matrix in not equal to row of second matrix, // ask the user to enter the size of matrix again. while (c1!=r2) { cout r1 >> c1; cout > r2 >> c2; } // Storing elements of first matrix. cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote