Question: / * Main computational kernel. The whole function will be timed, including the call and return. * / static void kernel _ ttm ( int

/* Main computational kernel. The whole function will be timed,
including the call and return. */
static
void kernel_ttm(int nr, int nq, int np,
Your connection to the remote server has been terminated.nq,np),
DATA_TYPE POLYBENCH_2D(C4,NP,NP,np,np),
{Problem 5(2 pts)
Consider the following code:
for (i=0; i
DATA_TYPE POLYBENCH_3D(BT,NR,NQ,NP,nr,nq,np))
int r, q, p, s;
#pragma scop
for (}r=0;r\mp@code{_PB_NR; r++)
for ( q =0; q _PB_NQ; q++)
for (}p=0;p_\mathrm{ PB_NP; p++)
for ( s =0; s PB_NP; s++)
C4[q][p]+= BT[q][r][s]* A[s][r][p];
#pragma endscop
}
~G Get Help
ExitProblem 6(2 pts)
For the same code as Problem 4, complete the table below. Assume that a cache line fits 8 elements:
/ * Main computational kernel. The whole function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!