Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > SSR_impls > SSR__MC_shared_impl
comparison SSR.c @ 70:eadb2ba022a0
bug fix -- initialize coreSlotIsOn -- now works
| author | Some Random Person <seanhalle@yahoo.com> |
|---|---|
| date | Mon, 19 Mar 2012 10:02:54 -0700 |
| parents | 81a0f076b12e |
| children | d20b105981b7 0d04c3e608cc |
comparison
equal
deleted
inserted
replaced
| 3:f7f0d3f20c60 | 4:f8122c0ba6a5 |
|---|---|
| 115 } | 115 } |
| 116 | 116 |
| 117 int32 | 117 int32 |
| 118 SSR__giveIdealNumWorkUnits() | 118 SSR__giveIdealNumWorkUnits() |
| 119 { | 119 { |
| 120 return NUM_SCHED_SLOTS * NUM_CORES; | 120 return NUM_ANIM_SLOTS * NUM_CORES; |
| 121 } | 121 } |
| 122 | 122 |
| 123 int32 | 123 int32 |
| 124 SSR__give_number_of_cores_to_schedule_onto() | 124 SSR__give_number_of_cores_to_schedule_onto() |
| 125 { | 125 { |
| 199 #ifdef HOLISTIC__TURN_ON_PERF_COUNTERS | 199 #ifdef HOLISTIC__TURN_ON_PERF_COUNTERS |
| 200 SSR__init_counter_data_structs(); | 200 SSR__init_counter_data_structs(); |
| 201 #endif | 201 #endif |
| 202 semanticEnv->shutdownInitiated = FALSE; | 202 semanticEnv->shutdownInitiated = FALSE; |
| 203 for(i=0;i<NUM_CORES;++i){ | 203 for(i=0;i<NUM_CORES;++i){ |
| 204 for(j=0;j<NUM_SCHED_SLOTS;++j){ | 204 for(j=0;j<NUM_ANIM_SLOTS;++j){ |
| 205 semanticEnv->idlePr[i][j] = VMS_int__create_slaveVP(&idle_fn,NULL); | 205 semanticEnv->idlePr[i][j] = VMS_int__create_slaveVP(&idle_fn,NULL); |
| 206 semanticEnv->idlePr[i][j]->coreAnimatedBy = i; | 206 semanticEnv->idlePr[i][j]->coreAnimatedBy = i; |
| 207 } | 207 } |
| 208 } | 208 } |
| 209 | 209 |
| 213 semanticEnv->commDependenciesList = makeListOfArrays(sizeof(Dependency),128); | 213 semanticEnv->commDependenciesList = makeListOfArrays(sizeof(Dependency),128); |
| 214 semanticEnv->dynDependenciesList = makeListOfArrays(sizeof(Dependency),128); | 214 semanticEnv->dynDependenciesList = makeListOfArrays(sizeof(Dependency),128); |
| 215 semanticEnv->ntonGroupsInfo = makePrivDynArrayOfSize((void***)&(semanticEnv->ntonGroups),8); | 215 semanticEnv->ntonGroupsInfo = makePrivDynArrayOfSize((void***)&(semanticEnv->ntonGroups),8); |
| 216 | 216 |
| 217 semanticEnv->hwArcs = makeListOfArrays(sizeof(Dependency),128); | 217 semanticEnv->hwArcs = makeListOfArrays(sizeof(Dependency),128); |
| 218 memset(semanticEnv->last_in_slot,0,sizeof(NUM_CORES * NUM_SCHED_SLOTS * sizeof(Unit))); | 218 memset(semanticEnv->last_in_slot,0,sizeof(NUM_CORES * NUM_ANIM_SLOTS * sizeof(Unit))); |
| 219 #endif | 219 #endif |
| 220 | 220 |
| 221 //create the ready queue, hash tables used for pairing send to receive | 221 //create the ready queue, hash tables used for pairing send to receive |
| 222 // and so forth | 222 // and so forth |
| 223 //TODO: add hash tables for pairing sends with receives, and | 223 //TODO: add hash tables for pairing sends with receives, and |
