19.11.2014 Views

Tutorial: Introduction to CUDA Fortran | GTC 2013

Tutorial: Introduction to CUDA Fortran | GTC 2013

Tutorial: Introduction to CUDA Fortran | GTC 2013

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.

Textures<br />

• Different pathway for accessing data in device DRAM<br />

• Read-only by device code<br />

• Cached on chip in texture cache<br />

• Uses F90 pointer notation<br />

– Declare texture at module scope in module where used<br />

real, texture, pointer :: aTex(:)<br />

– Bind and unbind texture in host code using pointer notation<br />

• Equivalent <strong>to</strong> tex1Dfetch() in <strong>CUDA</strong> C<br />

– No filtering or wrapping modes<br />

• 12.8 and later compilers

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

Saved successfully!

Ooh no, something went wrong!