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.

Separate Compilation<br />

• Device data can be shared between modules via F90 use<br />

– No special compilation flags needed<br />

• Device functions called between modules requires compilation<br />

with -Mcuda=rdc<br />

– rdc = relocatable device code<br />

– Device must be cc20 or higher (Fermi and Kepler)<br />

– Use on compile and link lines<br />

– -Mcuda=rdc implies -Mcuda=cuda5.0 and CC >= 2.0<br />

– requires 13.3 compiler

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

Saved successfully!

Ooh no, something went wrong!