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
solving copy_data_callback issue by adding a new smpi function that can be changed...
[simgrid.git]
/
src
/
smpi
/
smpi_global.cpp
diff --git
a/src/smpi/smpi_global.cpp
b/src/smpi/smpi_global.cpp
index
8d2f646
..
7cde17b
100644
(file)
--- a/
src/smpi/smpi_global.cpp
+++ b/
src/smpi/smpi_global.cpp
@@
-388,6
+388,11
@@
void print_request(const char *message, MPI_Request request)
message, request, request->buf, request->size, request->src, request->dst, request->tag, request->flags);
}
message, request, request->buf, request->size, request->src, request->dst, request->tag, request->flags);
}
+void smpi_comm_set_copy_data_callback(void (*callback) (smx_activity_t, void*, size_t))
+{
+ smpi_comm_copy_data_callback = callback;
+}
+
void smpi_comm_copy_buffer_callback(smx_activity_t synchro, void *buff, size_t buff_size)
{
XBT_DEBUG("Copy the data over");
void smpi_comm_copy_buffer_callback(smx_activity_t synchro, void *buff, size_t buff_size)
{
XBT_DEBUG("Copy the data over");
@@
-808,7
+813,7
@@
int smpi_main(int (*realmain) (int argc, char *argv[]), int argc, char *argv[])
// parse the platform file: get the host list
SIMIX_create_environment(argv[1]);
// parse the platform file: get the host list
SIMIX_create_environment(argv[1]);
- SIMIX_comm_set_copy_data_callback(
&smpi_comm_copy_buffer
_callback);
+ SIMIX_comm_set_copy_data_callback(
smpi_comm_copy_data
_callback);
SIMIX_function_register_default(realmain);
SIMIX_launch_application(argv[2]);
SIMIX_function_register_default(realmain);
SIMIX_launch_application(argv[2]);