IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35784 for trunk/psModules


Ignore:
Timestamp:
Jul 9, 2013, 2:23:33 PM (13 years ago)
Author:
watersc1
Message:

Fix threading issue. I was not correctly enabling the threads, so the performance was effectively single-threaded. Fixing this seems to have created a speedup of ~2x in the ppStack image matching phase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionSimple.c

    r35775 r35784  
    182182  }
    183183 
    184 
     184  bool oldThreads = psImageConvolveSetThreads(true); // Old value of threading in psImageConvolve
     185 
    185186  int maskBox = (int) ceil(sigmaKern * 1.1774); // diameter is 1/2 FWHM
    186187  int maskBlank = 8;  // I should be able to get this from a reference, right?
     
    387388  psFree(outHeader);
    388389
     390  psImageConvolveSetThreads(oldThreads);
     391 
    389392  //
    390393  // Return
Note: See TracChangeset for help on using the changeset viewer.