19.11.2014 Views

Introduction to CUDA C/C++

Introduction to CUDA C/C++

Introduction to CUDA C/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.

Hello World! with Device Code<br />

__global__ void mykernel(void) {<br />

}<br />

int main(void) {<br />

mykernel();<br />

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

return 0;<br />

}<br />

• Two new syntactic elements…<br />

© NVIDIA Corporation 2011

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

Saved successfully!

Ooh no, something went wrong!