Question: Part - B: CUDA Unified Memory ( 2 0 points ) In this problem we will compare vector operations executed on host vs on GPU

Part-B: CUDA Unified Memory (20 points) In this problem we will compare vector operations executed on host vs on GPU to quantify the speed-up. Q14 points Write a C++ program that adds the elements of two arrays with a K million elements each. Here K is a parameter of the program. Profile and get the time to execute this program for K=1,5,10,50,100. Use free() to free the memory at the end of the program.

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!