Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff MasterLoop.c @ 131:395f58384a5c
dot output
| author | Nina Engelhardt |
|---|---|
| date | Thu, 15 Sep 2011 17:31:33 +0200 |
| parents | 5475f90c248a |
| children | aefd87f9d12f |
line diff
1.1 --- a/MasterLoop.c Wed Sep 07 13:26:30 2011 +0200 1.2 +++ b/MasterLoop.c Thu Sep 15 17:31:33 2011 +0200 1.3 @@ -151,9 +151,10 @@ 1.4 int lastRecordIdx = currSlot->procrAssignedToSlot->counter_history_array_info->numInArray -1; 1.5 CounterRecord* lastRecord = currSlot->procrAssignedToSlot->counter_history[lastRecordIdx]; 1.6 lastRecord->req_core = thisCoresIdx; 1.7 - saveCyclesAndInstrs(thisCoresIdx,lastRecord->req_cycles,lastRecord->req_instrs); 1.8 + saveCyclesAndInstrs(thisCoresIdx,lastRecord->next_task_req_cycles,lastRecord->next_task_req_instrs); 1.9 //End of task, start of next task 1.10 //print counters from last run 1.11 + addToDynArray((void*)lastRecord,masterEnv->counter_history_array_info); 1.12 print_record_csv_to_file(lastRecord,_VMSMasterEnv->counteroutput); 1.13 1.14 Dependency* newd = new_dependency(currSlot->procrAssignedToSlot->procrID,lastRecord->task_position,currSlot->procrAssignedToSlot->procrID,lastRecord->task_position + 1); 1.15 @@ -165,6 +166,8 @@ 1.16 newRecord->req_core = thisCoresIdx; 1.17 newRecord->vp_id = currSlot->procrAssignedToSlot->procrID; 1.18 newRecord->task_position = lastRecord->task_position + 1; 1.19 + newRecord->req_cycles = lastRecord->next_task_req_cycles; 1.20 + newRecord->req_instrs = lastRecord->next_task_req_instrs; 1.21 getReturnAddressBeforeLibraryCall(currSlot->procrAssignedToSlot, &(newRecord->addr_of_libcall_for_req)); 1.22 addToDynArray( (void*) newRecord, currSlot->procrAssignedToSlot->counter_history_array_info); 1.23 lastRecord = newRecord;
