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.
Reduction using CUF Kernels<br />
• Compiler recognizes use of scalar reduction and generates one<br />
result<br />
rsum = 0.0<br />
!$cuf kernel do <br />
do i = 1, nx<br />
rsum = rsum + a_d(i)<br />
enddo