Changeset 23473


Ignore:
Timestamp:
11/29/18 01:35:54 (6 years ago)
Author:
rueckamp
Message:

CHG: add profiler tag for MPISerial

Location:
issm/trunk-jpl/src/c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r23471 r23473  
    880880                if(profiler->Used(ESACORE)) _printf0_("   "<<setw(40)<<left<<"ESA core elapsed time:"<<setw(7)<<setprecision(6)<<profiler->TotalTime(ESACORE) << " sec\n");
    881881                if(profiler->Used(SLRCORE)) _printf0_("   "<<setw(40)<<left<<"SLR core elapsed time:"<<setw(7)<<setprecision(6)<<profiler->TotalTime(SLRCORE) << " sec\n");
     882                if(profiler->Used(MPISERIAL)) _printf0_("   "<<setw(40)<<left<<"MPISERIAL elapsed time:"<<setw(7)<<setprecision(6)<<profiler->TotalTime(MPISERIAL) << " sec\n");               
    882883               
    883884                /*Add to results: */
  • issm/trunk-jpl/src/c/classes/Profiler.h

    r23232 r23473  
    2727#define ESACORE                         14 /*Profiling ESA */
    2828#define SLRCORE                         15 /*Profiling SLR */
    29 #define MAXPROFSIZE                     16 /*Used to initialize static arrays*/
     29#define MPISERIAL                               16 /*Profiling MPISerial */
     30#define MAXPROFSIZE                     17 /*Used to initialize static arrays*/
     31
    3032
    3133class Profiler: public Object{
  • issm/trunk-jpl/src/c/modules/InputUpdateFromSolutionx/InputUpdateFromSolutionx.cpp

    r18521 r23473  
    1010
    1111        /*Serialize solution, so that elements can index into it on every CPU: */
     12        femmodel->profiler->Start(MPISERIAL);
    1213        IssmDouble* serial_solution=solution->ToMPISerial();
     14        femmodel->profiler->Stop(MPISERIAL);
    1315
    1416        /*Call overloaded form of InputUpdateFromSolutionx: */
Note: See TracChangeset for help on using the changeset viewer.