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 pull request #218 from Takishipp/MSG2S4U
[simgrid.git]
/
src
/
smpi
/
mpi
/
smpi_win.cpp
diff --git
a/src/smpi/mpi/smpi_win.cpp
b/src/smpi/mpi/smpi_win.cpp
index
f2782d1
..
02c7765
100644
(file)
--- a/
src/smpi/mpi/smpi_win.cpp
+++ b/
src/smpi/mpi/smpi_win.cpp
@@
-195,7
+195,7
@@
int Win::put( void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
if(opened_==0){//check that post/start has been done
// no fence or start .. lock ok ?
int locked=0;
if(opened_==0){//check that post/start has been done
// no fence or start .. lock ok ?
int locked=0;
- for
(auto
it : recv_win->lockers_)
+ for
(auto const&
it : recv_win->lockers_)
if (it == comm_->rank())
locked = 1;
if(locked != 1)
if (it == comm_->rank())
locked = 1;
if(locked != 1)
@@
-252,7
+252,7
@@
int Win::get( void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
if(opened_==0){//check that post/start has been done
// no fence or start .. lock ok ?
int locked=0;
if(opened_==0){//check that post/start has been done
// no fence or start .. lock ok ?
int locked=0;
- for
(auto
it : send_win->lockers_)
+ for
(auto const&
it : send_win->lockers_)
if (it == comm_->rank())
locked = 1;
if(locked != 1)
if (it == comm_->rank())
locked = 1;
if(locked != 1)
@@
-314,7
+314,7
@@
int Win::accumulate( void *origin_addr, int origin_count, MPI_Datatype origin_da
if(opened_==0){//check that post/start has been done
// no fence or start .. lock ok ?
int locked=0;
if(opened_==0){//check that post/start has been done
// no fence or start .. lock ok ?
int locked=0;
- for
(auto
it : recv_win->lockers_)
+ for
(auto const&
it : recv_win->lockers_)
if (it == comm_->rank())
locked = 1;
if(locked != 1)
if (it == comm_->rank())
locked = 1;
if(locked != 1)
@@
-368,7
+368,7
@@
int Win::get_accumulate( void *origin_addr, int origin_count, MPI_Datatype origi
if(opened_==0){//check that post/start has been done
// no fence or start .. lock ok ?
int locked=0;
if(opened_==0){//check that post/start has been done
// no fence or start .. lock ok ?
int locked=0;
- for
(auto
it : send_win->lockers_)
+ for
(auto const&
it : send_win->lockers_)
if (it == comm_->rank())
locked = 1;
if(locked != 1)
if (it == comm_->rank())
locked = 1;
if(locked != 1)
@@
-405,7
+405,7
@@
int Win::compare_and_swap(void *origin_addr, void *compare_addr,
if(opened_==0){//check that post/start has been done
// no fence or start .. lock ok ?
int locked=0;
if(opened_==0){//check that post/start has been done
// no fence or start .. lock ok ?
int locked=0;
- for
(auto
it : send_win->lockers_)
+ for
(auto const&
it : send_win->lockers_)
if (it == comm_->rank())
locked = 1;
if(locked != 1)
if (it == comm_->rank())
locked = 1;
if(locked != 1)
@@
-413,7
+413,7
@@
int Win::compare_and_swap(void *origin_addr, void *compare_addr,
}
XBT_DEBUG("Entering MPI_Compare_and_swap with %d", target_rank);
}
XBT_DEBUG("Entering MPI_Compare_and_swap with %d", target_rank);
- MPI_Request req;
+ MPI_Request req
= MPI_REQUEST_NULL
;
xbt_mutex_acquire(send_win->atomic_mut_);
get(result_addr, 1, datatype, target_rank,
target_disp, 1, datatype, &req);
xbt_mutex_acquire(send_win->atomic_mut_);
get(result_addr, 1, datatype, target_rank,
target_disp, 1, datatype, &req);