OpenACC™ data directive

Delineates a block of code, identifying the 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.
!$acc data [clause [, clause ...]]
    block
!$acc end data
#pragma acc data [clause [, clause ...]]
    block

Supported clauses are if, copy, copyin, copyout, create, present, present_or_copy, present_or_copyin, present_or_copyout, present_or_create, deviceptr.

For more information, see Section 2.5 of The OpenACC™ Application Programming Interface, Version 1.0, available from http://www.openacc-standard.org.


OpenACC™ Application Programming Interface Version 1.0