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
Merge branch 'master' into 'master'
[simgrid.git]
/
teshsuite
/
smpi
/
auto-shared
/
auto-shared.c
diff --git
a/teshsuite/smpi/auto-shared/auto-shared.c
b/teshsuite/smpi/auto-shared/auto-shared.c
index 967f8cc0ae8971876ad3b84159795a8c89ed034b..2af5a4210b562cf956ffb332754b76b9c1b0da47 100644
(file)
--- a/
teshsuite/smpi/auto-shared/auto-shared.c
+++ b/
teshsuite/smpi/auto-shared/auto-shared.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2009-202
0
. The SimGrid Team.
+/* Copyright (c) 2009-202
3
. 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
@@
-34,6
+34,8
@@
int main(int argc, char *argv[])
MPI_Comm_size(MPI_COMM_WORLD, &size);
//Let's Allocate a memory buffer
uint64_t* buf = calloc(1, sizeof(uint64_t));
MPI_Comm_size(MPI_COMM_WORLD, &size);
//Let's Allocate a memory buffer
uint64_t* buf = calloc(1, sizeof(uint64_t));
+
+ MPI_Barrier(MPI_COMM_WORLD);
//one writes data in it
if(rank==0){
*buf=size;
//one writes data in it
if(rank==0){
*buf=size;