| 1 |
/* |
| 2 |
* Copyright (C) by Argonne National Laboratory |
| 3 |
* See COPYRIGHT in top-level directory |
| 4 |
*/ |
| 5 |
|
| 6 |
#include "mpid_nem_impl.h" |
| 7 |
|
| 8 |
|
| 9 |
static int nm_init(MPIDI_PG_t * pg_p, int pg_rank, char **bc_val_p, int *val_max_sz_p) |
| 10 |
{ |
| 11 |
return MPI_SUCCESS; |
| 12 |
} |
| 13 |
|
| 14 |
static int nm_get_business_card(int my_rank, char **bc_val_p, int *val_max_sz_p) |
| 15 |
{ |
| 16 |
MPIR_Assertp(0); |
| 17 |
return MPI_SUCCESS; |
| 18 |
} |
| 19 |
|
| 20 |
static int nm_connect_to_root(const char *business_card, MPIDI_VC_t * new_vc) |
| 21 |
{ |
| 22 |
MPIR_Assertp(0); |
| 23 |
return MPI_SUCCESS; |
| 24 |
} |
| 25 |
|
| 26 |
static int nm_vc_init(MPIDI_VC_t * vc) |
| 27 |
{ |
| 28 |
return MPI_SUCCESS; |
| 29 |
} |
| 30 |
|
| 31 |
static int nm_vc_destroy(MPIDI_VC_t * vc) |
| 32 |
{ |
| 33 |
return MPI_SUCCESS; |
| 34 |
} |
| 35 |
|
| 36 |
static int nm_vc_terminate(MPIDI_VC_t * vc) |
| 37 |
{ |
| 38 |
return MPIDI_CH3U_Handle_connection(vc, MPIDI_VC_EVENT_TERMINATED); |
| 39 |
} |
| 40 |
|
| 41 |
static int nm_poll(int in_blocking_poll) |
| 42 |
{ |
| 43 |
return MPI_SUCCESS; |
| 44 |
} |
| 45 |
|
| 46 |
static int nm_ckpt_shutdown(void) |
| 47 |
{ |
| 48 |
return MPI_SUCCESS; |
| 49 |
} |
| 50 |
|
| 51 |
static int nm_finalize(void) |
| 52 |
{ |
| 53 |
return nm_ckpt_shutdown(); |
| 54 |
} |
| 55 |
|
| 56 |
MPID_nem_netmod_funcs_t MPIDI_nem_none_funcs = { |
| 57 |
nm_init, |
| 58 |
nm_finalize, |
| 59 |
#ifdef ENABLE_CHECKPOINTING |
| 60 |
NULL, NULL, NULL, /* ckpt routines */ |
| 61 |
#endif |
| 62 |
nm_poll, |
| 63 |
nm_get_business_card, |
| 64 |
nm_connect_to_root, |
| 65 |
nm_vc_init, |
| 66 |
nm_vc_destroy, |
| 67 |
nm_vc_terminate, |
| 68 |
NULL, NULL, NULL /* anysource iprobe etc. */ |
| 69 |
}; |