changeset 22:9b1fea8d8aeb perf_tuning_paper

Performance debug series: fix divider bug
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Tue, 17 Apr 2012 19:20:46 +0200
parents cfca88034000
children b7d8cf6680a9
files SSR_Matrix_Mult/Divide_Pr.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/SSR_Matrix_Mult/Divide_Pr.c	Tue Apr 17 19:18:57 2012 +0200
     1.2 +++ b/SSR_Matrix_Mult/Divide_Pr.c	Tue Apr 17 19:20:46 2012 +0200
     1.3 @@ -402,7 +402,7 @@
     1.4                 // that each core gets the same number of vectors, with a max
     1.5                 // imbalance of 1 vector more on some cores than others
     1.6              numVecOnCurrCore += 1;                 //incr before checking, so
     1.7 -         }   if( numVecOnCurrCore > numToPutOntoEachCore ) //actual num 1 less
     1.8 +            if( numVecOnCurrCore > numToPutOntoEachCore ) //actual num 1 less
     1.9               {
    1.10                    //deal with fractional part, to ensure that imbalance is 1 max
    1.11                    // IE, core with most has only 1 more than core with least
    1.12 @@ -414,7 +414,7 @@
    1.13                 coreToAssignOnto += 1;
    1.14                 if( coreToAssignOnto >= numCores ) coreToAssignOnto = 0;
    1.15               } //if
    1.16 -           //for( vecIdx
    1.17 +          } //for( vecIdx
    1.18         } //for( resColIdx
    1.19      } //for( resRowIdx
    1.20