Skip to content

Commit

Permalink
whitespace only
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffhammond committed Feb 18, 2024
1 parent e9ea664 commit d5c3b9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OPENMP/Synch_p2p/p2p.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ int main(int argc, char ** argv) {
#if SYNCHRONOUS
#pragma omp atomic write seq_cst
flag(0,0)= true;
#endif
#endif
}

for (j=1; j<n; j+=grp) { /* apply grouping */
Expand All @@ -261,7 +261,7 @@ int main(int argc, char ** argv) {
#if SYNCHRONOUS
#pragma omp atomic write seq_cst
flag(TID-1,j) = false;
#endif
#endif
}

for (jj=j; jj<j+jjsize; jj++)
Expand All @@ -271,14 +271,14 @@ int main(int argc, char ** argv) {

/* if not on right boundary, signal right neighbor it has new data */
if (TID < nthread-1) {
#if SYNCHRONOUS
#if SYNCHRONOUS
while (1) {
int flg_tmp;
#pragma omp atomic read seq_cst
flg_tmp = flag(TID,j);
if (flg_tmp == false) break;
}
#endif
#endif
#pragma omp atomic write seq_cst
flag(TID,j) = true;
}
Expand Down

0 comments on commit d5c3b9d

Please sign in to comment.