2007-08-16 09:52:30 +04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2004-2007 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
2010-09-18 03:04:06 +04:00
|
|
|
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
2007-08-16 09:52:30 +04:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INCLUDE_VPROTOCOL_H_
|
|
|
|
#define __INCLUDE_VPROTOCOL_H_
|
|
|
|
|
|
|
|
#include "ompi_config.h"
|
2015-06-24 06:59:57 +03:00
|
|
|
#include "ompi/mca/mca.h"
|
2007-08-16 09:52:30 +04:00
|
|
|
#include "ompi/mca/pml/pml.h"
|
2007-12-07 11:21:25 +03:00
|
|
|
#include "ompi/request/request.h"
|
2007-08-16 09:52:30 +04:00
|
|
|
|
2009-08-20 15:42:18 +04:00
|
|
|
BEGIN_C_DECLS
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2007-08-16 09:52:30 +04:00
|
|
|
/* PML_V->PROTOCOL Called by MCA_PML_V framework to initialize the component.
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2007-08-16 09:52:30 +04:00
|
|
|
* @param priority (OUT) Relative priority or ranking used by MCA to
|
|
|
|
* select a component.
|
|
|
|
*
|
|
|
|
* @param enable_progress_threads (IN) Whether this component is
|
|
|
|
* allowed to run a hidden/progress thread or not.
|
|
|
|
*
|
|
|
|
* @param enable_mpi_threads (IN) Whether support for multiple MPI
|
|
|
|
* threads is enabled or not (i.e., MPI_THREAD_MULTIPLE), which
|
|
|
|
* indicates whether multiple threads may invoke this component
|
|
|
|
* simultaneously or not.
|
|
|
|
*/
|
2015-06-24 06:59:57 +03:00
|
|
|
typedef struct mca_vprotocol_base_module_2_0_0_t *
|
|
|
|
(*mca_vprotocol_base_component_init_fn_t)(int *priority,
|
2007-08-16 09:52:30 +04:00
|
|
|
bool enable_progress_threads,
|
|
|
|
bool enable_mpi_threads);
|
|
|
|
|
|
|
|
/* Release any resource allocated in init
|
|
|
|
*/
|
|
|
|
typedef int (*mca_vprotocol_base_component_finalize_fn_t)(void);
|
|
|
|
|
|
|
|
|
|
|
|
/* The MCA type for class instance
|
|
|
|
*/
|
2008-07-29 02:40:57 +04:00
|
|
|
typedef struct mca_vprotocol_base_component_2_0_0_t {
|
2007-08-16 09:52:30 +04:00
|
|
|
mca_base_component_t pmlm_version;
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_base_component_data_t pmlm_data;
|
2007-08-16 09:52:30 +04:00
|
|
|
mca_vprotocol_base_component_init_fn_t pmlm_init;
|
|
|
|
mca_vprotocol_base_component_finalize_fn_t pmlm_finalize;
|
2008-07-29 02:40:57 +04:00
|
|
|
} mca_vprotocol_base_component_2_0_0_t;
|
|
|
|
typedef mca_vprotocol_base_component_2_0_0_t mca_vprotocol_base_component_t;
|
2007-08-16 09:52:30 +04:00
|
|
|
|
|
|
|
/* The base module of the component
|
|
|
|
*/
|
2008-10-01 22:40:44 +04:00
|
|
|
typedef struct mca_vprotocol_base_module_2_0_0_t
|
2007-08-16 09:52:30 +04:00
|
|
|
{
|
2015-06-24 06:59:57 +03:00
|
|
|
/* PML module stuff */
|
2007-12-07 11:21:25 +03:00
|
|
|
mca_pml_base_module_add_procs_fn_t add_procs;
|
|
|
|
mca_pml_base_module_del_procs_fn_t del_procs;
|
|
|
|
mca_pml_base_module_enable_fn_t enable;
|
|
|
|
mca_pml_base_module_progress_fn_t progress;
|
|
|
|
mca_pml_base_module_add_comm_fn_t add_comm;
|
|
|
|
mca_pml_base_module_del_comm_fn_t del_comm;
|
|
|
|
mca_pml_base_module_irecv_init_fn_t irecv_init;
|
|
|
|
mca_pml_base_module_irecv_fn_t irecv;
|
|
|
|
mca_pml_base_module_recv_fn_t recv;
|
|
|
|
mca_pml_base_module_isend_init_fn_t isend_init;
|
|
|
|
mca_pml_base_module_isend_fn_t isend;
|
|
|
|
mca_pml_base_module_send_fn_t send;
|
|
|
|
mca_pml_base_module_iprobe_fn_t iprobe;
|
|
|
|
mca_pml_base_module_probe_fn_t probe;
|
|
|
|
mca_pml_base_module_start_fn_t start;
|
|
|
|
mca_pml_base_module_dump_fn_t dump;
|
|
|
|
/* Request wait/test stuff */
|
|
|
|
ompi_request_test_fn_t test;
|
|
|
|
ompi_request_test_any_fn_t test_any;
|
|
|
|
ompi_request_test_all_fn_t test_all;
|
|
|
|
ompi_request_test_some_fn_t test_some;
|
|
|
|
ompi_request_wait_fn_t wait;
|
|
|
|
ompi_request_wait_any_fn_t wait_any;
|
|
|
|
ompi_request_wait_all_fn_t wait_all;
|
|
|
|
ompi_request_wait_some_fn_t wait_some;
|
2015-06-24 06:59:57 +03:00
|
|
|
|
2007-08-16 09:52:30 +04:00
|
|
|
/* Custom requests classes to add extra data at end of pml requests */
|
|
|
|
opal_class_t * req_recv_class;
|
|
|
|
opal_class_t * req_send_class;
|
2008-10-01 22:40:44 +04:00
|
|
|
} mca_vprotocol_base_module_2_0_0_t;
|
|
|
|
typedef mca_vprotocol_base_module_2_0_0_t mca_vprotocol_base_module_t;
|
2007-08-16 09:52:30 +04:00
|
|
|
|
2009-08-20 15:42:18 +04:00
|
|
|
END_C_DECLS
|
2007-08-16 09:52:30 +04:00
|
|
|
|
|
|
|
/* silently include the pml_v.h as every file including vprotocol.h will also
|
|
|
|
* need it
|
|
|
|
*/
|
2008-01-29 09:07:57 +03:00
|
|
|
#include "ompi/mca/pml/v/pml_v.h"
|
2010-09-18 03:04:06 +04:00
|
|
|
#include "ompi/mca/vprotocol/base/base.h"
|
2007-08-16 09:52:30 +04:00
|
|
|
|
|
|
|
#endif /* __INCLUDE_VPROTOCOL_H_ */
|