Intel® C++ Compiler 16.0 User and Reference Guide
Specifies that variables are unmapped from a device data environment. This pragma only applies to Intel® MIC Architecture.
#pragma omp target exit data [clause[, clause, ...]] |
clause |
Can be any of the following clauses:
|
The binding task for the omp target exit data construct is the encountering task. This pragma is a stand-alone directive. When an omp target exit data construct is encountered, the list items in the map clauses are unmapped from the device data environment according to map-type. A map-type must be specified in all map clauses and must be from, release or delete.
The omp target exit data construct executes as if it was enclosed in a task construct.
When a depend clause is present, it acts as if it appeared on the implicit task construct that encloses the omp target exit data construct.
If there is no device clause, the default device is determined by the internal control variable (ICV) named default-device-var.
When an if clause is present and the if clause expression evaluates to false, the device is the host.
When a nowait clause is specified, the current task may resume execution before the generated task completes its execution.