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] Fix typo when fixing memory allocation
[simgrid.git]
/
src
/
smpi
/
smpi_bench.c
diff --git
a/src/smpi/smpi_bench.c
b/src/smpi/smpi_bench.c
index
a5d2335
..
d105b33
100644
(file)
--- a/
src/smpi/smpi_bench.c
+++ b/
src/smpi/smpi_bench.c
@@
-727,7
+727,7
@@
void smpi_initialize_global_memory_segments(){
}
smpi_privatisation_regions = (smpi_privatisation_region_t) malloc(
}
smpi_privatisation_regions = (smpi_privatisation_region_t) malloc(
-
sizeof(struct s_smpi_privatisation_region) * sizeof(int
));
+
xbt_malloc((smpi_process_count()) * sizeof(struct s_smpi_privatisation_region
));
for (i=0; i< SIMIX_process_count(); i++){
//create SIMIX_process_count() mappings of this size with the same data inside
for (i=0; i< SIMIX_process_count(); i++){
//create SIMIX_process_count() mappings of this size with the same data inside