Changeset 15385


Ignore:
Timestamp:
07/01/13 23:31:35 (12 years ago)
Author:
Eric.Larour
Message:

CHG: added AD solution profiling

File:
1 edited

Legend:

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

    r15384 r15385  
    346346                _printf0_("Solution number of flops : " << solution_flops  << " Flops\n");
    347347                _printf0_("Solution memory used     : " << solution_memory << " Bytes\n");
    348 
     348               
    349349                /*Add to results: */
    350350                results->AddObject(new GenericExternalResult<IssmDouble>(results->Size()+1, ProfilingSolutionTimeEnum, solution_time, 1, 0));
    351351                results->AddObject(new GenericExternalResult<IssmDouble>(results->Size()+1, ProfilingCurrentMemEnum, solution_memory, 1, 0));
    352352                results->AddObject(new GenericExternalResult<IssmDouble>(results->Size()+1, ProfilingCurrentFlopsEnum, solution_flops, 1, 0));
    353         }
     353
     354                #ifdef _HAVE_ADOLC_
     355                solution_time=profiler->DeltaTime(StartAdCore,FinishAdCore);
     356                solution_flops=profiler->DeltaFlops(StartAdCore,FinishAdCore);
     357                solution_memory=profiler->Memory(FinishAdCore);
     358
     359                _printf0_("AD Solution elapsed time    : " << solution_time   << " Seconds\n");
     360                _printf0_("AD Solution number of flops : " << solution_flops  << " Flops\n");
     361                _printf0_("AD Solution memory used     : " << solution_memory << " Bytes\n");
     362
     363
     364                #endif
     365
     366                        }
    354367}
    355368/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.