Question: ( 1 0 pt ) Assume that the following code is running on NVIDIA Tesla architecture. if ( a 0 ) b = c +

(10pt) Assume that the following code is running on NVIDIA Tesla architecture.
if(a0) b=c+d; //path1
else if (a==0)b=c*d; //path2
else b=c/d //path3
Among a group of 32 threads called WARP, 10 threads follow path1,10 threads follow path2, and 12 threads
follow path3. Assume that path 1 needs 3 cycles, path2 needs 5 cycles, and path 3 needs 20 cycles. Compute the
total cycles to run the 32 threads. Note that in Tesla, an SM has 8 SPs'.
( 1 0 pt ) Assume that the following code is

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!