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.
More on thread blocks<br />
• Thread blocks are very important because:<br />
• All threads in a block can access the same (fast) local data store:<br />
shared memory<br />
• All threads in a block can be synchronised (i.e. the thread waits until<br />
all threads in the block reach the same point)<br />
• A typical strategy is, therefore:<br />
1. Each thread loads data from global device mem. to shared mem.<br />
2. Synchronise threads<br />
3. Process data and write result back to global memory