Saturday, 3 June 2017

How can we define a multi dimensional structure of block?


               To define a multi dimensional structure of block, we have to use dim3 data type to define the second argument in triple angular bracket which is used for kernel invocation.

e.g.

dim3 block(3,2)
kernelname<<<1,block>>>(arg1,arg2,arg3);

No comments:

Post a comment