... | ... | @@ -39,8 +39,8 @@ It is generally placed before a loop which is offloaded to the GPU. |
|
|
|
|
|
Note that the `from`, `to`, `tofrom`, and `alloc` options are called the *specifiers*.
|
|
|
|
|
|
### Allocative memory operations
|
|
|
There are also directives that you can use to allocate memory on the device and is accessible by the kernel.
|
|
|
### Persistent memory operations
|
|
|
There are also directives that you can use to allocate memory on the device which remains for the entire kernel.
|
|
|
You have the `target enter data map` and `target exit data map` structure, or the `target data map` and `end target data map` structure. The difference is that the latter is bounded to a lexical scope, and the first is not. Both will be described below.
|
|
|
|
|
|
#### Data Map
|
... | ... | @@ -66,6 +66,7 @@ The overview below only lists the ones that we actively use. |
|
|
| Environment variable | Description |
|
|
|
|:--------------------:|:------------|
|
|
|
| OMP_NUM_THREADS | Sets the number of threads to the given value. |
|
|
|
| OMP_TARGET_OFFLOAD | `MANDATORY`: Terminate if target device is not available. `DEFAULT`: Offload if possible. `DISABLED`: Implementation specific. |
|
|
|
|
|
|
## Sources
|
|
|
Some of the sources used for this wiki page:
|
... | ... | |