We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcd7cf8 commit 5e8d2edCopy full SHA for 5e8d2ed
ompi/win/win.h
@@ -141,7 +141,7 @@ static inline int ompi_win_invalid(ompi_win_t *win) {
141
}
142
143
static inline int ompi_win_peer_invalid(ompi_win_t *win, int peer) {
144
- if (win->w_group->grp_proc_count <= peer) return true;
+ if (win->w_group->grp_proc_count <= peer || peer < 0) return true;
145
return false;
146
147
0 commit comments