Lightweight Parallel Foundations 1.0.1-alpha 2023-06-26T11:02:34Z
A high performance and model-compliant communication layer
Functions
Specific to Hybrid implementation
Collaboration diagram for Specific to Hybrid implementation:

Functions

lpf_err_t lpf_hybrid_initialize (CONCATENATE(lpf, pthread, LPF_CORE_IMPL_CONFIG, _t) thread, CONCATENATE(lpf, mpimsg, LPF_CORE_IMPL_CONFIG, _t) mpi, lpf_pid_t threadId, lpf_pid_t nThreads, lpf_pid_t nodeId, lpf_pid_t nNodes, lpf_init_t *init)
 
lpf_err_t lpf_hybrid_finalize (lpf_init_t init)
 

Detailed Description

Function Documentation

◆ lpf_hybrid_initialize()

lpf_err_t lpf_hybrid_initialize ( CONCATENATE(lpf, pthread, LPF_CORE_IMPL_CONFIG, _t)  thread,
CONCATENATE(lpf, mpimsg, LPF_CORE_IMPL_CONFIG, _t)  mpi,
lpf_pid_t  threadId,
lpf_pid_t  nThreads,
lpf_pid_t  nodeId,
lpf_pid_t  nNodes,
lpf_init_t init 
)

Initialises a lpf_init_t object with LPF contexts from the Pthread implementation and an MPI-RMA implementation. This function must be called collectively by all threads that are in the Pthread and the MPI-RMA contexts.

Parameters
[in]threadThe Pthread LPF context
[in]mpiThe MPI-RMA LPF context
[in]threadIdThe pid in the Pthread context
[in]nThreadsThe number of threads in the Pthread context
[in]nodeIdThe pid in the MPI-RMA context
[in]nNodesthe number of processes in the MPI-RMA context.
[out]initThe lpf_init_t object that can be used through lpf_hook().
Returns
LPF_SUCCESS when the initialisation was successful.
LPF_ERR_OUT_OF_MEMORY when there wasn't enough memory.
LPF_ERR_FATAL when the system encountered an unrecoverable error.

◆ lpf_hybrid_finalize()

lpf_err_t lpf_hybrid_finalize ( lpf_init_t  init)