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.

Multidimensional Example - Host<br />

• Execution Configuration<br />

call inc(a_d,b)<br />

– Grid dimensions in blocks (blocksPerGrid) and block dimensions in<br />

threads (threadsPerBlock) can be either integer or dim3<br />

type (dim3)<br />

integer (kind=4) :: x, y, z<br />

end type

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

Saved successfully!

Ooh no, something went wrong!