| 10 | |
| 11 | In this page we show how to access Network Attached Memory (NAM) from tasks in hybrid task-based MPI+!OmpSs-2 applications. |
| 12 | The NAM memory regions can be accessed through MPI RMA windows thanks to the extensions on the RMA model interface provided by !ParaStation MPI. |
| 13 | The applications can allocate MPI windows that are linked to NAM memory regions and perform RMA operations on those NAM regions, such as `MPI_Put` and `MPI_Get`. |
| 14 | Following the standard MPI RMA fence synchronization mode, applications can open access epochs on those regions by calling `MPI_Win_fence`, then call the desired RMA operations, and finally, close the epoch with another call to `MPI_Win_fence`. |
| 15 | Moreover, this NAM support has been integrated into the !OmpSs-2 tasking model, allowing accessing NAM regions from !OmpSs-2 tasks efficiently and safely through the Task-Aware MPI (TAMPI) library. |
| 16 | |
| 17 | In the following sections, we describe the TAMPI library and how hybrid task-based applications should access NAM memory regions. |
| 18 | Finally, we show the Heat equation benchmark as an example of using this support to save periodic snapshots of the computed matrix in a NAM allocation. |
| 19 | |