IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 1, 2011, 6:21:28 PM (15 years ago)
Author:
eugene
Message:

fix threading for psphotStack; use standard PS_ARGUMENTS_ macros for ppSub, ppStack, pswarp, ppImage, psphotStack; fix FPA.EXPOSURE in ppImageAddNoise; fix accounting for psf bad and poor weights; added flags for substantial poor masks due to each poor mask bit type; fix the measurement of the fwhm in pmPSFtoFWHM

Location:
branches/eam_branches/ipp-20110213/ppStack/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/ppStack/src/ppStackArguments.c

    r30620 r30772  
    110110{
    111111    assert(config);
     112
     113    // generic arguments (version, dumpconfig)
     114    PS_ARGUMENTS_GENERIC( ppStack, config, argc, argv );
     115
     116    // thread arguments
     117    PS_ARGUMENTS_THREADS( ppStack, config, argc, argv )
    112118
    113119    {
     
    181187    psMetadataAddStr(arguments, PS_LIST_TAIL, "-temp-variance", 0, "Suffix for temporary variance maps", NULL);
    182188    psMetadataAddBool(arguments, PS_LIST_TAIL, "-temp-delete", 0, "Delete temporary files on completion?", false);
    183     psMetadataAddS32(arguments, PS_LIST_TAIL, "-threads", 0, "Number of threads to use", 0);
    184189    psMetadataAddBool(arguments, PS_LIST_TAIL, "-visual", 0, "visualisation", false);
    185190
     
    238243    valueArgStr(arguments, "-stats", "STATS", arguments);
    239244
    240     int numThreads = psMetadataLookupS32(NULL, arguments, "-threads"); // Number of threads
    241     if (numThreads > 0 && !psThreadPoolInit(numThreads)) {
    242         psError(PPSTACK_ERR_ARGUMENTS, false, "Unable to setup %d threads", numThreads);
    243         return false;
    244     }
    245 
    246245    psMetadataAddBool(arguments, PS_LIST_TAIL, "PPSTACK.DEBUG.STACK", 0,
    247246                      "Read old convolved images to debug stack?", debugStack);
  • branches/eam_branches/ipp-20110213/ppStack/src/ppStackFiles.c

    r30620 r30772  
    6565    for (int i = 0; i < numLeaks; i++) {
    6666        psMemBlock *mb = leaks[i];
    67         fprintf(memFile, "%12lu\t%12zd\t%s:%d\n", mb->id, mb->userMemorySize,
    68                 mb->file, mb->lineno);
     67        fprintf(memFile, "%12lu\t%12zd\t%s:%d\n", mb->id, mb->userMemorySize, mb->file, mb->lineno);
    6968        total += mb->userMemorySize;
    7069    }
     
    7574    num++;
    7675}
    77 
    78 
    7976
    8077// Activate/deactivate a list of files
  • branches/eam_branches/ipp-20110213/ppStack/src/ppStackLoop.c

    r30620 r30772  
    5555    }
    5656
    57     // Start threading
    58     ppStackThreadInit();
     57    // Define threading elements
    5958    ppStackThreadData *stack = ppStackThreadDataSetup(options, config, true);
    6059    if (!stack) {
  • branches/eam_branches/ipp-20110213/ppStack/src/ppStackMatch.c

    r30684 r30772  
    142142    bool mdok;                          // Status of MD lookup
    143143    float penalty = psMetadataLookupF32(NULL, ppsub, "PENALTY"); // Penalty for wideness
    144     int threads = psMetadataLookupS32(NULL, config->arguments, "-threads"); // Number of threads
     144    int threads = psMetadataLookupS32(NULL, config->arguments, "NTHREADS"); // Number of threads
    145145
    146146    // Replaced pmReadoutMaskNonfinite with pmReadoutMaskInvalid (tests for already masked pixels)
  • branches/eam_branches/ipp-20110213/ppStack/src/ppStackReject.c

    r30620 r30772  
    5555
    5656    // Reject bad pixels
    57     if (psMetadataLookupS32(NULL, config->arguments, "-threads") > 0) {
     57    if (psMetadataLookupS32(NULL, config->arguments, "NTHREADS") > 0) {
    5858        pmStackRejectThreadsInit();
    5959    }
  • branches/eam_branches/ipp-20110213/ppStack/src/ppStackThread.c

    r30620 r30772  
    101101    }
    102102
    103     int numThreads = psMetadataLookupS32(NULL, config->arguments, "-threads"); // Number of threads
     103    int numThreads = psMetadataLookupS32(NULL, config->arguments, "NTHREADS"); // Number of threads
    104104
    105105    // Generate readouts for each input file in each file group
     
    248248
    249249
    250 void ppStackThreadInit(void)
     250void ppStackSetThreads(void)
    251251{
    252252    static bool threaded = false;       // Are we running threaded?
  • branches/eam_branches/ipp-20110213/ppStack/src/ppStackThread.h

    r30620 r30772  
    4343
    4444// Initialise the threads
    45 void ppStackThreadInit(void);
     45void ppStackSetThreads(void);
    4646
    4747
Note: See TracChangeset for help on using the changeset viewer.