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.

Kernel Loop Directives (CUF Kernels)<br />

• Multidimensional arrays<br />

!$cuf kernel do(2) ><br />

do j = 1, ny<br />

do i = 1, nx<br />

a_d(i,j) = b_d(i,j) + c_d(i,j)<br />

enddo<br />

enddo<br />

• Can specify parts of execution parameter<br />

!$cuf kernel do(2)

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

Saved successfully!

Ooh no, something went wrong!