Question: 9 . Consider the following CUDA kernel and the corresponding host function that calls it: 0 1 N ) { 0 2 x; 0 3
Consider the following CUDA kernel and the corresponding host function
that calls it:
N
x;
bd N;
global void fookernelfloat a float b unsigned int
unsigned int iblockIdx.x blockDim.x threadIdx.
ifi N
bif aif;
void foofloat ad float bd
unsigned int N;
fookernel N ad
a What is the number of threads per block?
b What is the number of threads in the grid?
c What is the number of blocks in the grid?
d What is the number of threads that execute the code on line
e What is the number of threads that execute the code on line
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
