Friday 2 June 2017

How kernels are called from main() function?


kernel-name<<<No-of-Blocks, No-of-Threads-Per_Block>>>(Parameters)

                 Look at the above syntax. In between, kernel name and parameters, we have to mention triple angular brackets. In triple angular brackets, two parameters are their. First parameter indicates number of blocks while second parameter indicates number of threads per block.


__global__ void func1(int *a, int *b)

void main()

No comments:

Post a Comment