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.

Accelerator DirectivesAccelerator Directives90This section provides an overview of the Fortran and C directives used to delineate accelerator regions and toaugment information available to the compiler for scheduling of loops and classification of data. For completedescriptions of each accelerator directive, refer to the “<strong>PGI</strong> Accelerator Directives” section of the <strong>PGI</strong> CompilerReference Manual.Enable Accelerator Directives<strong>PGI</strong> Accelerator compilers enable accelerator directives with the –ta command line option. For moreinformation on this option as it relates to the Accelerator, refer to “Applicable Command Line Options,” onpage 99.Note_ACCEL macroFormatRulesThe syntax used to define directives allows compilers to ignore accelerator directives if support isdisabled or not provided.The _ACCEL macro name is defined to have a value yyyymm where yyyy is the year and mm is the monthdesignation of the version of the Accelerator directives supported by the implementation. For example, theversion for May, 2009 is 200905. This macro must be defined by a compiler when accelerator directives areenabled.The specific format of the directive depends on the language and the format or form of the source.Directives include a name and clauses, and the format of the directive depends on the type:• C directives, described in “C Directives”• Free-form Fortran directives, described in “Free-Form Fortran Directives”• Fixed-form Fortran directives, described in “Fixed-Form Fortran Directives”NoteThis document uses free form for all <strong>PGI</strong> Accelerator compiler Fortran directive examples.The following rules apply to all <strong>PGI</strong> Accelerator compiler directives:• Only one directive-name can be specified per directive.• The order in which clauses appear is not significant.• Clauses may be repeated unless otherwise specified.

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

Saved successfully!

Ooh no, something went wrong!