Tutorial: Introduction to CUDA Fortran | GTC 2013
Tutorial: Introduction to CUDA Fortran | GTC 2013
Tutorial: Introduction to CUDA Fortran | GTC 2013
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Page-Locked Data Transfers<br />
• Page-locked or pinned host memory by declaration<br />
– Designated by pinned variable attribute<br />
– Must be allocatable<br />
real, device :: a_d(N)<br />
real, pinned, allocatable :: a(:)<br />
allocate(a(N), STAT=istat, PINNED=pinnedFlag)<br />
...<br />
a_d = a<br />
– Tesla K20/Sandy Bridge<br />
• Pageable: ~3.3 GB/s<br />
• Pinned: ~6 GB/s