X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/afce8d5e39f2887c03cbc16b84e563cb5d69328a..b7cb2064d88c6655e29592b9fab734076b89737c:/src/smpi/private.h diff --git a/src/smpi/private.h b/src/smpi/private.h index 9ea8fb41d6..e692c3898e 100644 --- a/src/smpi/private.h +++ b/src/smpi/private.h @@ -1,8 +1,8 @@ -/* Copyright (c) 2007, 2009-2013. The SimGrid Team. +/* Copyright (c) 2007, 2009-2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it - * under the terms of the license (GNU LGPL) which comes with this package. */ + * under the terms of the license (GNU LGPL) which comes with this package. */ #ifndef SMPI_PRIVATE_H #define SMPI_PRIVATE_H @@ -28,6 +28,15 @@ typedef struct s_smpi_process_data *smpi_process_data_t; #define ISEND 0x20 #define SSEND 0x40 #define PREPARED 0x80 +#define FINISHED 0x100 + + +enum smpi_process_state{ + SMPI_UNINITIALIZED, + SMPI_INITIALIZED, + SMPI_FINALIZED +}; + // this struct is here to handle the problem of non-contignous data // for each such structure these function should be implemented (vector // index hvector hindex struct) @@ -114,6 +123,8 @@ smx_rdv_t smpi_process_remote_mailbox_small(int index); xbt_os_timer_t smpi_process_timer(void); void smpi_process_simulated_start(void); double smpi_process_simulated_elapsed(void); +void smpi_process_set_sampling(int s); +int smpi_process_get_sampling(void); void print_request(const char *message, MPI_Request request); @@ -290,11 +301,19 @@ int smpi_coll_basic_alltoallv(void *sendbuf, int *sendcounts, // utilities extern double smpi_cpu_threshold; extern double smpi_running_power; -extern int smpi_sample_is_running; +extern int smpi_privatize_global_variables; +extern char* start_data_exe; //start of the data+bss segment of the executable +extern int size_data_exe; //size of the data+bss segment of the executable + + +void switch_data_segment(int); +void smpi_get_executable_global_size(void); +void smpi_initialize_global_memory_segments(void); +void smpi_destroy_global_memory_segments(void); void smpi_bench_destroy(void); void smpi_bench_begin(void); void smpi_bench_end(void); -void smpi_execute_flops(double flops); + // f77 wrappers void mpi_init_(int*);