12.07.2015 Views

PGI User's Guide

PGI User's Guide

PGI User's Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Examples1.1. Hello program ......................................................................................................................... 22.1. Makefiles with Options ............................................................................................................ 183.1. Dot Product Code ................................................................................................................... 303.2. Unrolled Dot Product Code ...................................................................................................... 303.3. Vector operation using SSE instructions ..................................................................................... 333.4. Using SYSTEM_CLOCK code fragment ........................................................................................ 464.1. Sample Makefile ..................................................................................................................... 525.1. OpenMP Loop Example ........................................................................................................... 576.1. MPI Hello World Example ....................................................................................................... 767.1. Accelerator Kernel Timing Data ............................................................................................... 1028.1. Prefetch Directive Use ........................................................................................................... 1148.2. Prefetch Pragma in C ............................................................................................................ 1159.1. Build a DLL: Fortran ............................................................................................................. 1249.2. Build a DLL: C ..................................................................................................................... 1259.3. Build DLLs Containing Circular Mutual Imports: C ..................................................................... 1269.4. Build DLLs Containing Mutual Imports: Fortran ......................................................................... 1279.5. Import a Fortran module from a DLL ...................................................................................... 12912.1. Character Return Parameters ................................................................................................ 15612.2. COMPLEX Return Values ...................................................................................................... 15612.3. Fortran Main Program f2c_main.f ......................................................................................... 15712.4. C function f2c_func_ ........................................................................................................... 15712.5. C Main Program c2f_main.c ................................................................................................. 15812.6. Fortran Subroutine c2f_sub.f ................................................................................................ 15812.7. C++ Main Program cp2c_main.C Calling a C Function ............................................................. 15912.8. Simple C Function c2cp_func.c ............................................................................................. 15912.9. C Main Program c2cp_main.c Calling a C++ Function ............................................................. 15912.10. Simple C++ Function c2cp_func.C with Extern C ................................................................... 16012.11. Fortran Main Program f2cp_main.f calling a C++ function ...................................................... 16012.12. C++ function f2cp_func.C .................................................................................................. 16112.13. C++ main program cp2f_main.C ........................................................................................ 16112.14. Fortran Subroutine cp2f_func.f ........................................................................................... 16213.1. Medium Memory Model and Large Array in C ......................................................................... 17113.2. Medium Memory Model and Large Array in Fortran ................................................................. 172xiii

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

Saved successfully!

Ooh no, something went wrong!