diff SSR.c @ 69:8882e795016d

minor bug fix and name change
author Some Random Person <seanhalle@yahoo.com>
date Sat, 17 Mar 2012 00:42:11 -0700
parents 81a0f076b12e
children d20b105981b7 0d04c3e608cc
line diff
     1.1 --- a/SSR.c	Fri Mar 16 23:47:37 2012 -0700
     1.2 +++ b/SSR.c	Sat Mar 17 00:42:11 2012 -0700
     1.3 @@ -117,7 +117,7 @@
     1.4  int32
     1.5  SSR__giveIdealNumWorkUnits()
     1.6   {
     1.7 -   return NUM_SCHED_SLOTS * NUM_CORES;
     1.8 +   return NUM_ANIM_SLOTS * NUM_CORES;
     1.9   }
    1.10  
    1.11  int32
    1.12 @@ -201,7 +201,7 @@
    1.13     #endif
    1.14     semanticEnv->shutdownInitiated = FALSE;
    1.15     for(i=0;i<NUM_CORES;++i){
    1.16 -       for(j=0;j<NUM_SCHED_SLOTS;++j){
    1.17 +       for(j=0;j<NUM_ANIM_SLOTS;++j){
    1.18             semanticEnv->idlePr[i][j] = VMS_int__create_slaveVP(&idle_fn,NULL);
    1.19             semanticEnv->idlePr[i][j]->coreAnimatedBy = i;
    1.20         }
    1.21 @@ -215,7 +215,7 @@
    1.22     semanticEnv->ntonGroupsInfo = makePrivDynArrayOfSize((void***)&(semanticEnv->ntonGroups),8);
    1.23     
    1.24     semanticEnv->hwArcs = makeListOfArrays(sizeof(Dependency),128);
    1.25 -   memset(semanticEnv->last_in_slot,0,sizeof(NUM_CORES * NUM_SCHED_SLOTS * sizeof(Unit)));
    1.26 +   memset(semanticEnv->last_in_slot,0,sizeof(NUM_CORES * NUM_ANIM_SLOTS * sizeof(Unit)));
    1.27     #endif
    1.28  
    1.29        //create the ready queue, hash tables used for pairing send to receive