12.07.2015 Views

PGI User's Guide

PGI User's Guide

PGI User's Guide

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PGI</strong> ® Compiler User’s <strong>Guide</strong>References related to Accelerators ......................................................................................... 1068. Using Directives and Pragmas ..................................................................................... 107<strong>PGI</strong> Proprietary Fortran Directives ......................................................................................... 107<strong>PGI</strong> Proprietary C and C++ Pragmas ..................................................................................... 108<strong>PGI</strong> Proprietary Optimization Directive and Pragma Summary .................................................... 108Scope of Fortran Directives and Command-Line options ............................................................ 110Scope of C/C++ Pragmas and Command-Line Options .............................................................. 111Prefetch Directives and Pragmas ........................................................................................... 113Prefetch Directive Syntax .............................................................................................. 114Prefetch Directive Format Requirements ......................................................................... 114Sample Usage of Prefetch Directive ................................................................................ 114Prefetch Pragma Syntax ................................................................................................ 115Sample Usage of Prefetch Pragma .................................................................................. 115!DEC$ Directives ................................................................................................................. 115Format Requirements ................................................................................................... 115Summary Table ........................................................................................................... 115C$PRAGMA C ...................................................................................................................... 1169. Creating and Using Libraries ....................................................................................... 117Using builtin Math Functions in C/C++ .................................................................................. 117Using System Library Routines ............................................................................................... 118Creating and Using Shared Object Files on Linux ..................................................................... 118Creating and Using Dynamic Libraries on Mac OS X ................................................................. 120<strong>PGI</strong> Runtime Libraries on Windows ........................................................................................ 120Creating and Using Static Libraries on Windows ....................................................................... 121ar command ............................................................................................................... 121ranlib command ......................................................................................................... 122Creating and Using Dynamic-Link Libraries on Windows ........................................................... 122Using LIB3F ....................................................................................................................... 130LAPACK, BLAS and FFTs ........................................................................................................ 130The C++ Standard Template Library ...................................................................................... 13010. Using Environment Variables .................................................................................... 131Setting Environment Variables ............................................................................................... 131Setting Environment Variables on Linux .......................................................................... 131Setting Environment Variables on Windows ..................................................................... 132Setting Environment Variables on Mac OSX ..................................................................... 132<strong>PGI</strong>-Related Environment Variables ........................................................................................ 133<strong>PGI</strong> Environment Variables ................................................................................................... 135FLEXLM_BATCH .......................................................................................................... 135FORTRANOPT .............................................................................................................. 135GMON_OUT_PREFIX .................................................................................................... 135LD_LIBRARY_PATH ...................................................................................................... 136LM_LICENSE_FILE ....................................................................................................... 136MANPATH ................................................................................................................... 136vii

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

Saved successfully!

Ooh no, something went wrong!