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.

Compilation<br />

Any source file containing <strong>CUDA</strong> language<br />

extensions must be compiled with nvcc<br />

NVCC is a compiler driver<br />

Works by invoking all the necessary tools and compilers<br />

like cudacc, g++, cl, ...<br />

NVCC can output:<br />

Either C code (CPU Code)<br />

That must then be compiled with the rest of the application<br />

using another tool<br />

Or PTX object code directly<br />

Any executable with <strong>CUDA</strong> code requires two<br />

dynamic libraries:<br />

The <strong>CUDA</strong> runtime library (cudart)<br />

The <strong>CUDA</strong> core library (cuda)<br />

© NVIDIA Corporation 2008

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

Saved successfully!

Ooh no, something went wrong!