diff VSs.h @ 22:b787a5234406

add task throttle
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Thu, 27 Dec 2012 12:27:45 +0100
parents feea343d202f
children 227db52cbd93
line diff
     1.1 --- a/VSs.h	Mon Oct 29 16:57:56 2012 +0100
     1.2 +++ b/VSs.h	Thu Dec 27 12:27:45 2012 +0100
     1.3 @@ -25,6 +25,8 @@
     1.4  //===========================================================================
     1.5  #define NUM_STRUCS_IN_SEM_ENV 1000
     1.6  
     1.7 +#define MAX_TASKS_NUM 256
     1.8 +
     1.9     //This is hardware dependent -- it's the number of cycles of scheduling
    1.10     // overhead -- if a work unit is fewer than this, it is better being
    1.11     // combined sequentially with other work
    1.12 @@ -227,6 +229,10 @@
    1.13     bool32          *coreIsDone;
    1.14     int32            numCoresDone;
    1.15     
    1.16 +   int              numInFlightTasks;
    1.17 +   PrivQueueStruc  *deferredSubmitsQ;
    1.18 +   int              numDeferred;
    1.19 +   
    1.20     #ifdef HOLISTIC__TURN_ON_OBSERVE_UCC
    1.21     ListOfArrays* unitList;
    1.22     ListOfArrays* ctlDependenciesList;
    1.23 @@ -244,7 +250,9 @@
    1.24     #ifdef HOLISTIC__TURN_ON_PERF_COUNTERS
    1.25     ListOfArrays* counterList[NUM_CORES];
    1.26     #endif
    1.27 +   #ifdef IDLE_SLAVES
    1.28     SlaveVP* idleSlv[NUM_CORES][NUM_ANIM_SLOTS];
    1.29 +   #endif
    1.30     int shutdownInitiated;
    1.31   }
    1.32  VSsSemEnv;