Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
creating instrumented versions of DT, EP and IS benchmarks
[simgrid.git] / src / smpi / private.h
index 4a5eccde7351ce2bb8eb29e5b5283b54e5514aaf..a604da44635945c27fec0c6a35034b62573e0722 100644 (file)
@@ -1,3 +1,9 @@
+/* Copyright (c) 2007, 2009, 2010. 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. */
+
 #ifndef SMPI_PRIVATE_H
 #define SMPI_PRIVATE_H
 
@@ -5,6 +11,7 @@
 #include "xbt/xbt_os_time.h"
 #include "simix/simix.h"
 #include "smpi/smpi.h"
+#include "instr/private.h"
 
 struct s_smpi_process_data;
 typedef struct s_smpi_process_data* smpi_process_data_t;
@@ -26,7 +33,10 @@ typedef struct s_smpi_mpi_request {
   int complete;
   MPI_Request match;
   unsigned flags;
-  MPI_Request ack;
+#ifdef HAVE_TRACING
+  int send;
+  int recv;
+#endif
 } s_smpi_mpi_request_t;
 
 void smpi_process_init(int* argc, char*** argv);
@@ -84,6 +94,7 @@ void smpi_mpi_send(void* buf, int count, MPI_Datatype datatype, int dst, int tag
 void smpi_mpi_sendrecv(void* sendbuf, int sendcount, MPI_Datatype sendtype, int dst, int sendtag, void* recvbuf, int recvcount, MPI_Datatype recvtype, int src, int recvtag, MPI_Comm comm, MPI_Status* status);
 int smpi_mpi_test(MPI_Request* request, MPI_Status* status);
 int smpi_mpi_testany(int count, MPI_Request requests[], int* index, MPI_Status* status);
+int smpi_mpi_get_count(MPI_Status* status, MPI_Datatype datatype);
 void smpi_mpi_wait(MPI_Request* request, MPI_Status* status);
 int smpi_mpi_waitany(int count, MPI_Request requests[], MPI_Status* status);
 void smpi_mpi_waitall(int count, MPI_Request requests[],  MPI_Status status[]);