with CUDA Fortran
with CUDA Fortran
with CUDA Fortran
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Compilation<br />
• pgfortran - PGI’s <strong>Fortran</strong> compiler<br />
– All source code <strong>with</strong> .cuf or .CUF is compiled as <strong>CUDA</strong> <strong>Fortran</strong> enabled<br />
automatically<br />
– Flag to target architecture (eg. -Mcuda=cc20)<br />
– -Mcuda=emu specifies emulation mode<br />
– Flag to target <strong>CUDA</strong> Toolkit version (eg. -Mcuda=cuda4.0)<br />
– -Mcuda=fastmath enables faster intrinsics (__sinf())<br />
– -Mcuda=nofma turns of fused multiply-add<br />
– -Mcuda=maxregcount: limits register usage per thread<br />
– -Mcuda=ptxinfo prints memory usage per kernel<br />
• pgfortran -Mcuda -help for a full list