- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStack/src/ppStackCombineInitial.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ppStack/src/ppStackCombineInitial.c
r31435 r33415 2 2 3 3 // This is the doomsday switch. 4 //#define TESTING // Enable test output4 #define TESTING // Enable test output 5 5 6 6 bool ppStackCombineInitial(ppStackThreadData *stack, ppStackOptions *options, pmConfig *config) … … 17 17 18 18 psTimerStart("PPSTACK_INITIAL"); 19 //MEH 20 ppStackMemDump("initial:start"); 19 21 20 22 psMetadata *ppsub = psMetadataLookupMetadata(NULL, config->recipes, "PPSUB"); // PPSUB recipe … … 22 24 "KERNEL.SIZE"); // Overlap by kernel size between consecutive scans 23 25 26 //MEH 27 ppStackMemDump("initial:configdone"); 24 28 25 29 bool status; // Status of read … … 27 31 for (numChunk = 0; true; numChunk++) { 28 32 ppStackThread *thread = ppStackThreadRead(&status, stack, config, numChunk, overlap); 33 //MEH -- full mem footprint before fault? 34 //ppStackMemDump("initial:threadread"); 29 35 if (!status) { 30 36 // Something went wrong … … 36 42 break; 37 43 } 44 //MEH -- need to make so doesn't cause segfault - dump is bad - was full size though 150MB for sim20 45 // ppStackMemDump("initial:threadchunkread"); 38 46 39 47 psThreadJob *job = psThreadJobAlloc("PPSTACK_INITIAL_COMBINE"); // Job to start … … 45 53 } 46 54 } 55 //MEH - also segfault 56 // ppStackMemDump("initial:threadchunkdone"); 47 57 48 if (!psThreadPoolWait(false )) {58 if (!psThreadPoolWait(false, true)) { 49 59 psError(psErrorCodeLast(), false, "Unable to do initial combination."); 50 60 return false; … … 69 79 psArray *inspect = results->data[0]; // Pixels to inspect 70 80 psArray *reject = results->data[1]; // Pixels to reject 81 //MEH 82 // ppStackMemDump("initial:threadchunkharvest"); 83 71 84 for (int i = 0; i < options->num; i++) { 72 85 if (options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i]) { … … 75 88 options->inspect->data[i] = psArrayAdd(options->inspect->data[i], 1, inspect->data[i]); 76 89 options->rejected->data[i] = psArrayAdd(options->rejected->data[i], 1, reject->data[i]); 90 //MEH 91 // ppStackMemDump("initial:threadchunkinspect"); 77 92 } 78 93 psFree(job);
Note:
See TracChangeset
for help on using the changeset viewer.
