29.01.2013 Views

Tutorial CUDA

Tutorial CUDA

Tutorial CUDA

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.

Compiling <strong>CUDA</strong> for NVIDIA GPUs<br />

Any source file containing<br />

<strong>CUDA</strong> language<br />

extensions must be<br />

compiled with NVCC<br />

© NVIDIA Corporation 2008<br />

NVCC separates code<br />

running on the host from<br />

code running on the device<br />

Two-stage compilation:<br />

1. Virtual ISA<br />

Parallel Thread eXecution<br />

2. Device-specific binary<br />

object<br />

C/C++ <strong>CUDA</strong><br />

Application<br />

NVCC<br />

PTX Code<br />

PTX to Target<br />

Compiler<br />

G80 … GPU<br />

Generic<br />

CPU Code<br />

Specialized

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

Saved successfully!

Ooh no, something went wrong!