... | ... | @@ -84,11 +84,11 @@ Allocate space for the variable on device, but do not copy anything. |
|
|
There are also directives that you can use to allocate memory on the device and is accessible by the kernel.
|
|
|
|
|
|
One can allocate memory on the device with:
|
|
|
```!$omp target enter data map (\<specifier\>)```
|
|
|
`!$omp target enter data map (\<specifier\>)`
|
|
|
Where the specifier is one of the operations listed in the section above.
|
|
|
|
|
|
One can deallocate memory on the device (after the kernel finishes) with:
|
|
|
```!$omp target exit data map (delete:<var>)```
|
|
|
`!$omp target exit data map (delete:<var>)`
|
|
|
where the data is deleted. If you want to copy over the data, you can use:
|
|
|
`!$omp target exit data map (from:<var>)`
|
|
|
|
... | ... | |