Skip to content

Commit

Permalink
DBM: Add extra brackets to make icc happy
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Aug 17, 2022
1 parent 260e8c7 commit 8bb6afe
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/dbm/dbm_multiply_comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,13 @@ static dbm_packed_matrix_t pack_matrix(const bool trans_matrix,

// Add data_recv_displ to recveived block offsets.
#pragma omp parallel
for (int irank = 0; irank < nranks; irank++) {
{ // Extra brackets needed to prevent deadlock with Intel compiler.
for (int irank = 0; irank < nranks; irank++) {
#pragma omp for
for (int i = 0; i < blks_recv_count[irank]; i++) {
blks_recv[blks_recv_displ[irank] + i].offset += data_recv_displ[irank];
for (int i = 0; i < blks_recv_count[irank]; i++) {
blks_recv[blks_recv_displ[irank] + i].offset +=
data_recv_displ[irank];
}
}
}

Expand Down

0 comments on commit 8bb6afe

Please sign in to comment.