1 #ifndef _SMPI_INTERFACE_H
2 #define _SMPI_INTERFACE_H
5 /********** Tracing **********/
6 /* from smpi_instr.c */
7 void TRACE_smpi_alloc(void);
8 void TRACE_smpi_release(void);
9 void TRACE_smpi_ptp_in(int rank, int src, int dst, const char *operation);
10 void TRACE_smpi_ptp_out(int rank, int src, int dst, const char *operation);
11 void TRACE_smpi_send(int rank, int src, int dst);
12 void TRACE_smpi_recv(int rank, int src, int dst);
13 void TRACE_smpi_init(int rank);
14 void TRACE_smpi_finalize(int rank);
16 /** \brief MPI collective description
19 typedef struct mpi_coll_description {
21 const char *description;
23 } s_mpi_coll_description_t, *mpi_coll_description_t;
25 /** \ingroup MPI allgather
26 * \brief The list of all available allgather collectives
28 XBT_PUBLIC_DATA(s_mpi_coll_description_t) mpi_coll_allgather_description[];
29 XBT_PUBLIC_DATA(int (*mpi_coll_allgather_fun)
30 (void *, int, MPI_Datatype, void *, int, MPI_Datatype,
34 /** \ingroup MPI allreduce
35 * \brief The list of all available allgather collectives
37 XBT_PUBLIC_DATA(s_mpi_coll_description_t) mpi_coll_allreduce_description[];
38 XBT_PUBLIC_DATA(int (*mpi_coll_allreduce_fun)
39 (void *sbuf, void *rbuf, int rcount, MPI_Datatype dtype,
40 MPI_Op op, MPI_Comm comm));
43 /** \ingroup MPI alltoall
44 * \brief The list of all available alltoall collectives
46 XBT_PUBLIC_DATA(s_mpi_coll_description_t) mpi_coll_alltoall_description[];
47 XBT_PUBLIC_DATA(int (*mpi_coll_alltoall_fun)
48 (void *, int, MPI_Datatype, void *, int, MPI_Datatype,
51 /** \ingroup MPI alltoallv
52 * \brief The list of all available alltoallv collectives
54 XBT_PUBLIC_DATA(s_mpi_coll_description_t) mpi_coll_alltoallv_description[];
55 XBT_PUBLIC_DATA(int (*mpi_coll_alltoallv_fun)
56 (void *, int*, int*, MPI_Datatype, void *, int*, int*, MPI_Datatype,
60 /** \ingroup MPI bcast
61 * \brief The list of all available bcast collectives
63 XBT_PUBLIC_DATA(s_mpi_coll_description_t) mpi_coll_bcast_description[];
64 XBT_PUBLIC_DATA(int (*mpi_coll_bcast_fun)
65 (void *buf, int count, MPI_Datatype datatype, int root,
69 /** \ingroup MPI reduce
70 * \brief The list of all available reduce collectives
72 XBT_PUBLIC_DATA(s_mpi_coll_description_t) mpi_coll_reduce_description[];
73 XBT_PUBLIC_DATA(int (*mpi_coll_reduce_fun)
74 (void *buf, void *rbuf, int count, MPI_Datatype datatype,
75 MPI_Op op, int root, MPI_Comm comm));
78 XBT_PUBLIC(void) coll_help(const char *category,
79 s_mpi_coll_description_t * table);
80 XBT_PUBLIC(int) find_coll_description(s_mpi_coll_description_t * table,
84 #endif /* _SMPI_INTERFAC_H */