Debian Codegraph @

src/mpid/ch3/channels/nemesis/include/mpid_nem_post.h

raw
1 /*
2 * Copyright (C) by Argonne National Laboratory
3 * See COPYRIGHT in top-level directory
4 */
5
6 #ifndef MPID_NEM_POST_H_INCLUDED
7 #define MPID_NEM_POST_H_INCLUDED
8
9 #include "mpidu_init_shm.h"
10
11 struct MPIDI_PG;
12 union MPIDI_CH3_Pkt;
13
14 /* if local_lmt_pending is true, local_lmt_progress will be called in the
15 progress loop */
16 extern int MPID_nem_local_lmt_pending;
17 extern int (*MPID_nem_local_lmt_progress)(void);
18
19 /* FIXME: Do not export these definitions all the way into mpiimpl.h (which
20 will happen if this is included in mpidpost.h or mpidpre.h) */
21 int MPID_nem_init(int rank, struct MPIDI_PG *pg_p, int has_parent);
22 int MPID_nem_finalize(void);
23 int MPID_nem_vc_init(struct MPIDI_VC *vc);
24 int MPID_nem_vc_destroy(struct MPIDI_VC *vc);
25 int MPID_nem_get_business_card(int myRank, char *value, int length);
26 int MPID_nem_connect_to_root(const char *port_name, struct MPIDI_VC *new_vc);
27 int MPID_nem_lmt_shm_progress(void);
28 int MPID_nem_lmt_dma_progress(void);
29 int MPID_nem_lmt_vmsplice_progress(void);
30
31 #ifdef ENABLE_CHECKPOINTING
32 extern int MPIDI_nem_ckpt_start_checkpoint;
33 extern int MPIDI_nem_ckpt_finish_checkpoint;
34 int MPIDI_nem_ckpt_init(void);
35 int MPIDI_nem_ckpt_finalize(void);
36 int MPIDI_nem_ckpt_start(void);
37 int MPIDI_nem_ckpt_finish(void);
38 int MPIDI_nem_ckpt_pkthandler_init(MPIDI_CH3_PktHandler_Fcn *pktArray[], int arraySize);
39 #endif
40
41 /* one-sided */
42
43 typedef struct MPID_nem_mpich_win
44 {
45 char *handle; /* shared-memory segment handle */
46 int proc; /* rank of owner */
47 void *home_address; /* address of window at owner */
48 int len; /* size of window */
49 void *local_address; /* address of window at this process */
50 }
51 MPID_nem_mpich_win_t;
52
53 #if !defined (MPID_NEM_INLINE) || !MPID_NEM_INLINE
54 int MPID_nem_mpich_send_header(void* buf, int size, struct MPIDI_VC *vc, int *again);
55 int MPID_nem_mpich_sendv(struct iovec **iov, int *n_iov, struct MPIDI_VC *vc, int *again);
56 int MPID_nem_mpich_sendv_header(struct iovec **iov, int *n_iov, struct MPIDI_VC *vc, int *again);
57 int MPID_nem_mpich_test_recv(MPID_nem_cell_ptr_t *cell, int *in_fbox, int in_blocking_progress);
58 int MPID_nem_mpich_test_recv_wait(MPID_nem_cell_ptr_t *cell, int *in_fbox, int timeout);
59 int MPID_nem_recv_seqno_matches(MPID_nem_queue_ptr_t qhead) ;
60 int MPID_nem_mpich_blocking_recv(MPID_nem_cell_ptr_t *cell, int *in_fbox);
61 int MPID_nem_mpich_release_cell(MPID_nem_cell_ptr_t cell, struct MPIDI_VC *vc);
62 int MPID_nem_mpich_enqueue_fastbox(int local_rank);
63 int MPID_nem_mpich_dequeue_fastbox(int local_rank);
64 #endif /* MPID_NEM_INLINE */
65
66
67 #endif /* MPID_NEM_POST_H_INCLUDED */