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
Add mpi_info support for rma calls
[simgrid.git]
/
src
/
smpi
/
private.h
diff --git
a/src/smpi/private.h
b/src/smpi/private.h
index
659424d
..
c9b7b8d
100644
(file)
--- a/
src/smpi/private.h
+++ b/
src/smpi/private.h
@@
-102,7
+102,7
@@
typedef struct s_smpi_mpi_request {
int truncated;
size_t real_size;
MPI_Comm comm;
int truncated;
size_t real_size;
MPI_Comm comm;
- smx_
action
_t action;
+ smx_
synchro
_t action;
unsigned flags;
int detached;
MPI_Request detached_sender;
unsigned flags;
int detached;
MPI_Request detached_sender;
@@
-126,6
+126,12
@@
typedef struct s_smpi_mpi_type_key_elem {
} s_smpi_mpi_type_key_elem_t;
typedef struct s_smpi_mpi_type_key_elem *smpi_type_key_elem;
} s_smpi_mpi_type_key_elem_t;
typedef struct s_smpi_mpi_type_key_elem *smpi_type_key_elem;
+typedef struct s_smpi_mpi_info {
+ xbt_dict_t info_dict;
+ int refcount;
+} s_smpi_mpi_info_t;
+
+
void smpi_process_destroy(void);
void smpi_process_finalize(void);
int smpi_process_finalized(void);
void smpi_process_destroy(void);
void smpi_process_finalize(void);
int smpi_process_finalized(void);
@@
-185,10
+191,10
@@
int smpi_process_get_replaying(void);
void smpi_deployment_register_process(const char* instance_id, int rank, int index, MPI_Comm**, xbt_bar_t*);
void smpi_deployment_cleanup_instances(void);
void smpi_deployment_register_process(const char* instance_id, int rank, int index, MPI_Comm**, xbt_bar_t*);
void smpi_deployment_cleanup_instances(void);
-void smpi_comm_copy_buffer_callback(smx_
action
_t comm,
+void smpi_comm_copy_buffer_callback(smx_
synchro
_t comm,
void *buff, size_t buff_size);
void *buff, size_t buff_size);
-void smpi_comm_null_copy_buffer_callback(smx_
action
_t comm,
+void smpi_comm_null_copy_buffer_callback(smx_
synchro
_t comm,
void *buff, size_t buff_size);
void print_request(const char *message, MPI_Request request);
void *buff, size_t buff_size);
void print_request(const char *message, MPI_Request request);
@@
-235,6
+241,9
@@
void smpi_datatype_create(MPI_Datatype* new_type, int size,int lb, int ub, int h
void smpi_datatype_free(MPI_Datatype* type);
void smpi_datatype_commit(MPI_Datatype* datatype);
void smpi_datatype_free(MPI_Datatype* type);
void smpi_datatype_commit(MPI_Datatype* datatype);
+int smpi_mpi_unpack(void* inbuf, int insize, int* position, void* outbuf, int outcount, MPI_Datatype type, MPI_Comm comm);
+int smpi_mpi_pack(void* inbuf, int incount, MPI_Datatype type, void* outbuf, int outcount, int* position, MPI_Comm comm);
+
void smpi_empty_status(MPI_Status * status);
MPI_Op smpi_op_new(MPI_User_function * function, int commute);
int smpi_op_is_commute(MPI_Op op);
void smpi_empty_status(MPI_Status * status);
MPI_Op smpi_op_new(MPI_User_function * function, int commute);
int smpi_op_is_commute(MPI_Op op);
@@
-435,7
+444,9
@@
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
extern int size_data_exe; //size of the data+bss segment of the executable
-void smpi_switch_data_segment(int);
+void smpi_switch_data_segment(int dest);
+void smpi_really_switch_data_segment(int dest);
+
void smpi_get_executable_global_size(void);
void smpi_initialize_global_memory_segments(void);
void smpi_destroy_global_memory_segments(void);
void smpi_get_executable_global_size(void);
void smpi_initialize_global_memory_segments(void);
void smpi_destroy_global_memory_segments(void);