| <html> |
| <head><title>OpenACC™ declare directive</title></head> |
| <body> |
| <h2>OpenACC™ declare directive</h2> |
| <dl><dd>Appears alongside local variable declarations, identifying scalars, arrays, and subarrays that will be available to an accelerator device during its execution and whether they will be copied into and out of device memory upon entry and exit.</dd></dl> |
| <table width="100%" border="0" cellspacing="5" cellpadding="3"><tr bgcolor="#eeeeee"> |
| <td align="left" valign="top"> |
| <tt><b><font color="#b46432">!$acc declare</font></b></tt> <i>clause [, clause ...]</i> |
| </td> |
| <td align="left" valign="top"> |
| <tt><b><font color="#931a68">#pragma </font>acc declare</b></tt> <i>clause [, clause ...]</i> |
| </td> |
| </tr></table> |
| <p> |
| Supported clauses are |
| <tt> |
| <b>copy</b>, |
| <b>copyin</b>, |
| <b>copyout</b>, |
| <b>create</b>, |
| <b>present</b>, |
| <b>present_or_copy</b>, |
| <b>present_or_copyin</b>, |
| <b>present_or_copyout</b>, |
| <b>present_or_create</b>, |
| <b>deviceptr</b>, |
| <b>device_resident</b>. |
| </tt> |
| </p> |
| <p>For more information, see Section |
| 2.11 |
| of <i>The OpenACC™ Application Programming Interface</i>, Version 1.0, |
| available from <a href="http://www.openacc-standard.org/">http://www.openacc-standard.org</a>.</p> |
| <br/> |
| <table width="100%" border="0"><tr> |
| <td align="right"><font color="#C0C0C0" size="1">OpenACC™ Application Programming Interface Version 1.0</font></td> |
| </tr></table> |
| </body> |
| </html> |