15.08.2012 Views

Introduction to CUDA C

Introduction to CUDA C

Introduction to CUDA C

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Hello, World!<br />

int main( void ) {<br />

printf( "Hello, World!\n" );<br />

return 0;<br />

}<br />

� This basic program is just standard C that runs on the host<br />

� NVIDIA’s compiler (nvcc) will not complain about <strong>CUDA</strong> programs<br />

with no device code<br />

� At its simplest, <strong>CUDA</strong> C is just C!

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

Saved successfully!

Ooh no, something went wrong!