Saturday, 3 June 2017

How can we define a multi dimensional structure of grid?


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

e.g.

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

No comments:

Post a comment