XBT_PUBLIC(void) coll_help(const char *category, s_mpi_coll_description_t * table);
XBT_PUBLIC(int) find_coll_description(s_mpi_coll_description_t * table, char *name, const char *desc);
-XBT_PUBLIC_DATA(void) (*smpi_coll_cleanup_callback)(void);
+XBT_PUBLIC_DATA(void) (*smpi_coll_cleanup_callback)();
- XBT_PUBLIC(void) smpi_coll_cleanup_mvapich2();
+ XBT_PUBLIC(void) smpi_coll_cleanup_mvapich2(void);
SG_END_DECL()
return (mpi_errno);
}
--
--
int smpi_coll_tuned_allgather_mvapich2(void *sendbuf, int sendcount, MPI_Datatype sendtype,
void *recvbuf, int recvcount, MPI_Datatype recvtype,
MPI_Comm comm)
return (mpi_errno);
}
--
--void smpi_coll_cleanup_mvapich2(){
++void smpi_coll_cleanup_mvapich2(void){
int i=0;
if(mv2_alltoall_thresholds_table)
xbt_free(mv2_alltoall_thresholds_table[i]);
xbt_free(mv2_allgather_table_ppn_conf);
xbt_free(mv2_allgather_thresholds_table);
--
xbt_free(mv2_allgatherv_thresholds_table);
xbt_free(mv2_reduce_thresholds_table);
xbt_free(mv2_red_scat_thresholds_table);
xbt_free(mv2_size_scatter_tuning_table);
xbt_free(mv2_scatter_table_ppn_conf);
}
--
void (*free_function)(void*);
};
--xbt_automaton_t xbt_automaton_new(){
++xbt_automaton_t xbt_automaton_new(void){
xbt_automaton_t automaton = NULL;
automaton = xbt_new0(struct xbt_automaton, 1);
automaton->states = xbt_dynar_new(sizeof(xbt_automaton_state_t), xbt_automaton_state_free_voidp);
* These are internal XBT functions called by xbt_preinit/postexit().
* It can be used several times to recreate the mallocator, for example when you switch to MC mode
*/
--void xbt_fifo_preinit(void)
++void xbt_fifo_preinit()
{
item_mallocator = xbt_mallocator_new(65536, fifo_item_mallocator_new_f,
fifo_item_mallocator_free_f, fifo_item_mallocator_reset_f);
}
--void xbt_fifo_postexit(void)
++void xbt_fifo_postexit()
{
if (item_mallocator != NULL) {
xbt_mallocator_free(item_mallocator);
pthread_exit(retval);
}
--xbt_os_thread_t xbt_os_thread_self(void)
++xbt_os_thread_t xbt_os_thread_self(void )
{
if (!thread_mod_inited)
return NULL;
SG_BEGIN_DECL()
/* Modules definitions */
-void xbt_backtrace_preinit(void);
-void xbt_backtrace_postexit(void);
+void xbt_backtrace_preinit();
+void xbt_backtrace_postexit();
- void xbt_log_preinit();
+ void xbt_log_preinit(void);
void xbt_log_init(int *argc, char **argv);
- void xbt_log_postexit();
+ void xbt_log_postexit(void);
- void xbt_fifo_preinit();
- void xbt_fifo_postexit();
- void xbt_dict_preinit();
- void xbt_dict_postexit();
+ void xbt_fifo_preinit(void);
+ void xbt_fifo_postexit(void);
+ void xbt_dict_preinit(void);
+ void xbt_dict_postexit(void);
- void xbt_os_thread_mod_preinit();
- void xbt_os_thread_mod_postexit();
+ void xbt_os_thread_mod_preinit(void);
+ void xbt_os_thread_mod_postexit(void);
-void *mmalloc_preinit(void);
-void mmalloc_postexit(void);
+void *mmalloc_preinit();
+void mmalloc_postexit();
extern int smx_cleaned;
extern int xbt_initialized;