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.

Accelerator DirectivesThis directive...Accelerator LoopMapping DirectiveC SyntaxAccepts theseclauses...cache( list )host [(width)]independentkernelparallel [(width)]private( list )seq [(width)]unroll [(width)]vector [(width)]Has this functionality...Describes what type of parallelism to use to executethe loop and declare loop-private variables and arrays.Applies to a loop which must appear on the followingline.#pragma acc for [clause [,clause]...]new-linefor loopFortran Syntax!$acc do [clause [,clause]…]do loopCombined DirectiveC SyntaxAny clause that isallowed on a regiondirective or a loopdirective is allowed on acombined directive.#pragma acc region for [clause [, clause]...] new-linefor loopFortran Syntax!$acc region do [clause [, clause]...]do loopAccelerator DeclarativeData DirectiveC Syntaxcopy ( list )copyin( list )copyout( list )local( list )mirror (list )reflected( list )#pragma acc declclause [,declclause]...new-lineFortran Syntax!$acc declclause [,declclause]...Is a shortcut for specifying a loop directive nestedimmediately inside an accelerator compute regiondirective. The meaning is identical to explicitly specifyinga region construct containing a loop directive.Specifies that an array or arrays are to be allocated in thedevice memory for the duration of the implicit dataregion of a function, subroutine, or program.Specifies whether the data values are to be transferredfrom the host to the device memory upon entry to theimplicit data region, and from the device to the hostmemory upon exit from the implicit data region.Creates a visible device copy of the variable or array.94

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

Saved successfully!

Ooh no, something went wrong!