Lecture 2 â Threads - many-core.group
Lecture 2 â Threads - many-core.group
Lecture 2 â Threads - many-core.group
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Kernel for c = a + b<br />
__global__ void vector_add_kernel (float *a, float *b,<br />
float *c)<br />
{<br />
int i<br />
i = threadIdx.x;<br />
// add i’th elements <br />
c[i] = a[i] + b[i]; <br />
}