... | @@ -29,20 +29,12 @@ Within the group of memory operations, some operate on a single kernel while oth |
... | @@ -29,20 +29,12 @@ Within the group of memory operations, some operate on a single kernel while oth |
|
|
|
|
|
These directives can be used for invoking GPU memory operations for a single kernel.
|
|
These directives can be used for invoking GPU memory operations for a single kernel.
|
|
|
|
|
|
**map([\<var\>])**
|
|
| Directive | Description |
|
|
Maps a variable to and from host.
|
|
|:---------:|:------------|
|
|
|
|
| map([\<var\>]) | Maps a variable from host and back after the kernel finishes. |
|
|
**map(from:[\<var\>])**
|
|
| map(from:[\<var\>]) | Maps a variable from host. |
|
|
Maps a variable from host.
|
|
| map(fromto:[\<var\>]) | Maps a variable from host and back after the kernel finishes. |
|
|
|
|
| map(alloc:[\<var\>] | Allocate space for the variable on device, but do not copy anything. |
|
|
**map(to:[\<var\>])**
|
|
|
|
Maps a variable to host after the kernel finishes.
|
|
|
|
|
|
|
|
**map(fromto:[\<var\>])**
|
|
|
|
Maps a variable from host and back after the kernel finishes.
|
|
|
|
|
|
|
|
**map(alloc:[\<var\>])**
|
|
|
|
Allocate space for the variable on device, but do not copy anything.
|
|
|
|
|
|
|
|
### Allocative memory operations
|
|
### Allocative memory operations
|
|
|
|
|
... | | ... | |