Check out example codes for "cuda dim3". It will help you in understanding the concepts better.

Code Example 1

// dim3 can take 1, 2, or 3 argumetns:
dim3 blocks1D( 5       );
dim3 blocks2D( 5, 5    );
dim3 blocks3D( 5, 5, 5 );

Learn ReactJs, React Native from akashmittal.com