A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SMPI: Kill the global list of senders and receivers
[simgrid.git]
/
src
/
smpi
/
private.h
diff --git
a/src/smpi/private.h
b/src/smpi/private.h
index
f3e8515
..
2db330e
100644
(file)
--- a/
src/smpi/private.h
+++ b/
src/smpi/private.h
@@
-91,11
+91,9
@@
typedef struct smpi_global_t {
// FIXME: request queues should be moved to host data...
xbt_fifo_t *pending_send_request_queues;
// FIXME: request queues should be moved to host data...
xbt_fifo_t *pending_send_request_queues;
- xbt_fifo_t *pending_recv_request_queues;
xbt_fifo_t *received_message_queues;
xbt_fifo_t *received_message_queues;
- smx_process_t *sender_processes;
- smx_process_t *receiver_processes;
+ smx_process_t *main_processes;
int running_hosts_count;
int running_hosts_count;
@@
-116,12
+114,18
@@
typedef struct smpi_host_data_t {
int index;
smx_mutex_t mutex;
smx_cond_t cond;
int index;
smx_mutex_t mutex;
smx_cond_t cond;
+
+ smx_process_t main;
+ smx_process_t sender;
+ smx_process_t receiver;
+
+ xbt_fifo_t pending_recv_request_queue;
} s_smpi_host_data_t;
typedef struct smpi_host_data_t *smpi_host_data_t;
// function prototypes
} s_smpi_host_data_t;
typedef struct smpi_host_data_t *smpi_host_data_t;
// function prototypes
-void smpi_
init_process
(void);
-void smpi_
mpi
_finalize(void);
+void smpi_
process_init
(void);
+void smpi_
process
_finalize(void);
int smpi_mpi_comm_rank(smpi_mpi_communicator_t comm);
int smpi_mpi_barrier(smpi_mpi_communicator_t comm);
int smpi_mpi_comm_rank(smpi_mpi_communicator_t comm);
int smpi_mpi_barrier(smpi_mpi_communicator_t comm);
@@
-147,8
+151,7
@@
int smpi_create_request(void *buf, int count, smpi_mpi_datatype_t datatype,
smpi_mpi_communicator_t comm,
smpi_mpi_request_t * request);
smpi_mpi_communicator_t comm,
smpi_mpi_request_t * request);
-int smpi_sender(int argc, char **argv);
-
-int smpi_receiver(int argc, char **argv);
+int smpi_sender(int argc,char*argv[]);
+int smpi_receiver(int argc, char*argv[]);
#endif
#endif