Question: Please help me to write the code in C language. 1. Write Cuda code for computing matrix-matrix product of the form C=A*B where A is

 Please help me to write the code in C language. 1.

Please help me to write the code in C language.

1. Write Cuda code for computing matrix-matrix product of the form C=A*B where A is an m*k (double) matrix and B is k*n (double) matrix and C is an m*n (double) matrix. 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. Follow the given template code. The name of the Cuda kernel and the binary executable must be "matmul_double" 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 1. Write Cuda code for computing matrix-matrix product of the form C=A*B where A is an m*k (double) matrix and B is k*n (double) matrix and C is an m*n (double) matrix. 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. Follow the given template code. The name of the Cuda kernel and the binary executable must be "matmul_double" 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

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 Databases Questions!