Question: Please help me with this code in C language.. 2. Write Cuda code for computing matrix-matrix product of the form C=A*BT where A is an

Please help me with this code in C language..
2. Write Cuda code for computing matrix-matrix product of the form C=A*BT where A is an m*k (double) matrix and B is n*k (double) matrix and C is an m*n (double) matrix; without explicitly transposing B. The code should be tiled and should use shared-memory. Make sure that the code works for matrices of all sizes, not just square matrices. Modify the given template code and use it. The name of the cuda kernel and the binary executable must be "matmul_double_t" The executable must accept m,n and k in that order) as command line arguments Report GFLOPS for the following sizes: for i in 4, 8, 10, 11 for j in 4, 8, 10, 11 m,n=power(2,1) k = power(2,3) m=4095,n=4097,k=125 2. Write Cuda code for computing matrix-matrix product of the form C=A*BT where A is an m*k (double) matrix and B is n*k (double) matrix and C is an m*n (double) matrix; without explicitly transposing B. The code should be tiled and should use shared-memory. Make sure that the code works for matrices of all sizes, not just square matrices. Modify the given template code and use it. The name of the cuda kernel and the binary executable must be "matmul_double_t" The executable must accept m,n and k in that order) as command line arguments Report GFLOPS for the following sizes: for i in 4, 8, 10, 11 for j in 4, 8, 10, 11 m,n=power(2,1) k = power(2,3) m=4095,n=4097,k=125
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
