Skip to content

Commit

Permalink
fix cores == columns case
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonje committed Mar 16, 2015
1 parent af6dc9f commit 1dd7f9c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions applications/intelParRes/synch_p2p/p2p-border.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ int main( int argc, char * argv[] ) {
for( int iter = 0; iter < FLAGS_iterations; ++iter ) {
on_all_cores( [] {
for( int i = 1; i < FLAGS_n; ++i ) {
if( ! ((Grappa::mycore() == 0) ||
(Grappa::mycore() == 1 && ga.dim2_percore == 1 )) ) {
if( ! (Grappa::mycore() == 0) ) {
lefts[i].reset();
}
}
Expand All @@ -132,7 +131,7 @@ int main( int argc, char * argv[] ) {
double left = readFF( &lefts[i] );
double diag = readFF( &lefts[i-1] );
double up = 0.0;
double current = 0.0;
double current = i;

for( int j = 0; j < dim2_percore; ++j ) {
int actual_j = j + first_j;
Expand Down

0 comments on commit 1dd7f9c

Please sign in to comment.