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
jedule: obey our coding standards
[simgrid.git]
/
src
/
smpi
/
colls
/
bcast
/
bcast-ompi-pipeline.cpp
diff --git
a/src/smpi/colls/bcast/bcast-ompi-pipeline.cpp
b/src/smpi/colls/bcast/bcast-ompi-pipeline.cpp
index
d7e48fd
..
854d738
100644
(file)
--- a/
src/smpi/colls/bcast/bcast-ompi-pipeline.cpp
+++ b/
src/smpi/colls/bcast/bcast-ompi-pipeline.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2013-201
7
. The SimGrid Team.
+/* Copyright (c) 2013-201
8
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-85,7
+85,7
@@
int Coll_bcast_ompi_pipeline::bcast( void* buffer,
tmpbuf = (char *) buffer;
if( tree->tree_nextsize != 0 ) {
tmpbuf = (char *) buffer;
if( tree->tree_nextsize != 0 ) {
-
send_reqs = xbt_new(MPI_Request, tree->tree_nextsize )
;
+
send_reqs = new MPI_Request[tree->tree_nextsize]
;
}
/* Root code */
}
/* Root code */
@@
-205,8
+205,8
@@
int Coll_bcast_ompi_pipeline::bcast( void* buffer,
Request::wait( &recv_reqs[req_index], MPI_STATUS_IGNORE );
}
Request::wait( &recv_reqs[req_index], MPI_STATUS_IGNORE );
}
-
if( NULL != send_reqs ) free(send_reqs)
;
-
xbt_free(
tree);
+
delete[] send_reqs
;
+
ompi_coll_tuned_topo_destroy_tree(&
tree);
return (MPI_SUCCESS);
}
return (MPI_SUCCESS);
}