15.08.2012 Views

Introduction to CUDA C

Introduction to CUDA C

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

Memory Management<br />

� Host and device memory are distinct entities<br />

— Device pointers point <strong>to</strong> GPU memory<br />

� May be passed <strong>to</strong> and from host code<br />

� May not be dereferenced from host code<br />

— Host pointers point <strong>to</strong> CPU memory<br />

� May be passed <strong>to</strong> and from device code<br />

� May not be dereferenced from device code<br />

� Basic <strong>CUDA</strong> API for dealing with device memory<br />

— cudaMalloc(), cudaFree(), cudaMemcpy()<br />

— Similar <strong>to</strong> their C equivalents, malloc(), free(), memcpy()

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

Saved successfully!

Ooh no, something went wrong!