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.
Direct Transfer Example - Device Code<br />
module kernel<br />
contains<br />
attributes(global) subroutine inc(a, v)<br />
implicit none<br />
real :: a(*)<br />
real, value :: v<br />
a(threadIdx%x) = a(threadIdx%x)+v<br />
end subroutine inc<br />
end module kernel