comparison SSR.h @ 72:d20b105981b7

make idle VPs optional
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Wed, 28 Mar 2012 18:02:38 +0200
parents 8882e795016d
children f20b4d9d3086
comparison
equal deleted inserted replaced
27:2afe04773d11 28:beed5f104c80
15 #include "dependency.h" 15 #include "dependency.h"
16 16
17 17
18 //=========================================================================== 18 //===========================================================================
19 #define NUM_STRUCS_IN_SEM_ENV 1000 19 #define NUM_STRUCS_IN_SEM_ENV 1000
20
21 //#define IDLE_SLAVES
20 22
21 //This is hardware dependent -- it's the number of cycles of scheduling 23 //This is hardware dependent -- it's the number of cycles of scheduling
22 // overhead -- if a work unit is fewer than this, it is better being 24 // overhead -- if a work unit is fewer than this, it is better being
23 // combined sequentially with other work 25 // combined sequentially with other work
24 //This value depends on both VMS overhead and SSR's plugin. At some point 26 //This value depends on both VMS overhead and SSR's plugin. At some point
124 #endif 126 #endif
125 127
126 #ifdef HOLISTIC__TURN_ON_PERF_COUNTERS 128 #ifdef HOLISTIC__TURN_ON_PERF_COUNTERS
127 ListOfArrays* counterList[NUM_CORES]; 129 ListOfArrays* counterList[NUM_CORES];
128 #endif 130 #endif
131 #ifdef IDLE_SLAVES
129 SlaveVP* idlePr[NUM_CORES][NUM_ANIM_SLOTS]; 132 SlaveVP* idlePr[NUM_CORES][NUM_ANIM_SLOTS];
130 int shutdownInitiated; 133 int shutdownInitiated;
134 #endif
131 } 135 }
132 SSRSemEnv; 136 SSRSemEnv;
133 137
134 138
135 typedef struct _TransListElem TransListElem; 139 typedef struct _TransListElem TransListElem;