15.08.2012 Views

Introduction to CUDA C

Introduction to CUDA C

Introduction to CUDA C

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Sharing Data Between Threads<br />

� Terminology: A block of threads shares memory called…shared<br />

memory<br />

� Extremely fast, on-chip memory (user-managed cache)<br />

� Declared with the __shared__ <strong>CUDA</strong> keyword<br />

� Not visible <strong>to</strong> threads in other blocks running in parallel<br />

Block 0<br />

Threads<br />

Shared Memory<br />

Block 1<br />

Threads<br />

Shared Memory<br />

Block 2<br />

Threads<br />

Shared Memory<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!