Map a Fortran array to a device (allocate and associate).
More...
|
| subroutine | device_map_r1 (x, x_d, n) |
| | Map a Fortran rank 1 array to a device (allocate and associate).
|
| subroutine | device_map_r2 (x, x_d, n) |
| | Map a Fortran rank 2 array to a device (allocate and associate).
|
| subroutine | device_map_r3 (x, x_d, n) |
| | Map a Fortran rank 3 array to a device (allocate and associate).
|
| subroutine | device_map_r4 (x, x_d, n) |
| | Map a Fortran rank 4 array to a device (allocate and associate).
|
- Note
- On unified memory backends the device pointer may alias the host array (zero-copy) and host-device copies of the pair become no-ops. The host side must then not be written while device work touching the array may be in flight; call device_sync before host-side writes to a mapped array.
Definition at line 83 of file device.F90.
◆ device_map_r1()
| subroutine device::device_map::device_map_r1 |
( |
class(*), dimension(:), intent(inout), target | x, |
|
|
type(c_ptr), intent(inout) | x_d, |
|
|
integer, intent(in) | n ) |
◆ device_map_r2()
| subroutine device::device_map::device_map_r2 |
( |
class(*), dimension(:,:), intent(inout), target | x, |
|
|
type(c_ptr), intent(inout) | x_d, |
|
|
integer, intent(in) | n ) |
◆ device_map_r3()
| subroutine device::device_map::device_map_r3 |
( |
class(*), dimension(:,:,:), intent(inout), target | x, |
|
|
type(c_ptr), intent(inout) | x_d, |
|
|
integer, intent(in) | n ) |
◆ device_map_r4()
| subroutine device::device_map::device_map_r4 |
( |
class(*), dimension(:,:,:,:), intent(inout), target | x, |
|
|
type(c_ptr), intent(inout) | x_d, |
|
|
integer, intent(in) | n ) |
The documentation for this interface was generated from the following file: