29.01.2013 Views

Tutorial CUDA

Tutorial CUDA

Tutorial CUDA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Example: Increment Array Elements<br />

CPU program <strong>CUDA</strong> program<br />

void increment_cpu(float *a, float b, int N)<br />

{<br />

}<br />

for (int idx = 0; idx

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

Saved successfully!

Ooh no, something went wrong!