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.

Convolution Example<br />

A<br />

B<br />

Perform convolution of a stack of 2D arrays in frequency space<br />

1. Send arrays <strong>to</strong> GPU memory<br />

2. Transform arrays <strong>to</strong> frequency domain using 2D FFT from CUFFT<br />

3. Perform point-wise complex multiplication and scaling (FFT(IFFT(A))=len(A)*A)<br />

4. Transform result back <strong>to</strong> physical domain<br />

5. Send result back <strong>to</strong> CPU memory

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

Saved successfully!

Ooh no, something went wrong!