X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/767a7a537b2ac742705d23b8dcb25d64cd36a2ee..7f9296e6300e3f81f438a2a7f56bcb35172c48b6:/include/smpi/smpi.h diff --git a/include/smpi/smpi.h b/include/smpi/smpi.h index 11afb6335e..d392f2579e 100644 --- a/include/smpi/smpi.h +++ b/include/smpi/smpi.h @@ -14,6 +14,7 @@ #include #include +#include "src/instr/instr_smpi.h" #ifdef _WIN32 #define MPI_CALL(type,name,args) \ @@ -811,6 +812,12 @@ XBT_PUBLIC(unsigned long long) smpi_rastro_timestamp (void); XBT_PUBLIC(void) smpi_sample_1(int global, const char *file, int line, int iters, double threshold); XBT_PUBLIC(int) smpi_sample_2(int global, const char *file, int line); XBT_PUBLIC(void) smpi_sample_3(int global, const char *file, int line); +XBT_PUBLIC(void) smpi_trace_set_call_location(const char *file, int line); +/** Fortran binding **/ +XBT_PUBLIC(void) smpi_trace_set_call_location_(const char *file, int* line); +/** Fortran binding + -fsecond-underscore **/ +XBT_PUBLIC(void) smpi_trace_set_call_location__(const char *file, int* line); +XBT_PUBLIC(smpi_trace_call_location_t*) smpi_process_get_call_location(void); #define SMPI_SAMPLE_LOCAL(iters,thres) for(smpi_sample_1(0, __FILE__, __LINE__, iters, thres); \ smpi_sample_2(0, __FILE__, __LINE__); \ @@ -909,5 +916,6 @@ if(!name) { \ #define SMPI_VARGET_STATIC(name) name[smpi_process_index()] + SG_END_DECL() #endif