Changeset 4aee30


Ignore:
Timestamp:
Dec 10, 2012, 10:10:57 AM (12 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
238868
Parents:
de84ef
git-author:
Frederik Heber <heber@…> (08/30/12 15:32:41)
git-committer:
Frederik Heber <heber@…> (12/10/12 10:10:57)
Message:

Timings of MPQCJob are now gathered for total and for the gathering process.

  • the gathering process e.g. includes sampling of electron density.
Location:
src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/FragmentationAction/FragmentationAutomationAction.cpp

    rde84ef r4aee30  
    395395    // we don't want to print grid to a table
    396396    // print times (without flops for now)
    397     typedef boost::mpl::remove<MPQCDataTimeVector_t, MPQCDataFused::times_flops>::type MPQCDataTimeVector_noflops_t;
     397    typedef boost::mpl::remove<
     398        boost::mpl::remove<MPQCDataTimeVector_t, MPQCDataFused::times_total_flops>::type,
     399        MPQCDataFused::times_gather_flops>::type
     400        MPQCDataTimeVector_noflops_t;
    398401    const std::string timesresult =
    399402        writeTable<MPQCDataTimeMap_t, MPQCDataTimeVector_noflops_t >()(
     
    581584    // we don't want to print grid to a table
    582585    // print times (without flops for now)
    583     typedef boost::mpl::remove<MPQCDataTimeVector_t, MPQCDataFused::times_flops>::type MPQCDataTimeVector_noflops_t;
     586    typedef boost::mpl::remove<
     587        boost::mpl::remove<MPQCDataTimeVector_t, MPQCDataFused::times_total_flops>::type,
     588        MPQCDataFused::times_gather_flops>::type
     589        MPQCDataTimeVector_noflops_t;
    584590    const std::string timesresult =
    585591        writeTable<MPQCDataTimeMap_t, MPQCDataTimeVector_noflops_t >()(
  • src/Fragmentation/Converter/DataConverter.hpp

    rde84ef r4aee30  
    160160    LOG(4, "DEBUG: Current extracted Data is " << extractedData << ".");
    161161    MPQCDataTimeMap_t instance;
    162     boost::fusion::at_key<MPQCDataFused::times_walltime>(instance) = extractedData.times.walltime;
    163     boost::fusion::at_key<MPQCDataFused::times_cputime>(instance) = extractedData.times.cputime;
    164     boost::fusion::at_key<MPQCDataFused::times_flops>(instance) = extractedData.times.flops;
     162    boost::fusion::at_key<MPQCDataFused::times_total_walltime>(instance) = extractedData.times.total_walltime;
     163    boost::fusion::at_key<MPQCDataFused::times_total_cputime>(instance) = extractedData.times.total_cputime;
     164    boost::fusion::at_key<MPQCDataFused::times_total_flops>(instance) = extractedData.times.total_flops;
     165    boost::fusion::at_key<MPQCDataFused::times_gather_walltime>(instance) = extractedData.times.gather_walltime;
     166    boost::fusion::at_key<MPQCDataFused::times_gather_cputime>(instance) = extractedData.times.gather_cputime;
     167    boost::fusion::at_key<MPQCDataFused::times_gather_flops>(instance) = extractedData.times.gather_flops;
    165168    MPQCData_Time_fused.insert( std::make_pair(dataiter->first, instance) );
    166169  }
  • src/Jobs/MPQCData.cpp

    rde84ef r4aee30  
    6262
    6363MPQCData::times_t::times_t() :
    64   walltime(0.),
    65   cputime(0.),
    66   flops(0.)
     64  total_walltime(0.),
     65  total_cputime(0.),
     66  total_flops(0.),
     67  gather_walltime(0.),
     68  gather_cputime(0.),
     69  gather_flops(0.)
    6770{}
    6871
     
    97100  ost << "Energy: " << data.energies.total << "\t";
    98101  ost << "Forces: " << data.forces << "\t";
    99   ost << "Times: " << data.times.walltime << ", " << data.times.cputime << ", " << data.times.flops;
     102  ost << "Times: " << data.times.total_walltime << ", "
     103      << data.times.total_cputime << ", "
     104      << data.times.total_flops;
    100105  return ost;
    101106}
  • src/Jobs/MPQCData.hpp

    rde84ef r4aee30  
    9393    times_t();
    9494
    95     double walltime;
    96     double cputime;
    97     double flops;
     95    double total_walltime;
     96    double total_cputime;
     97    double total_flops;
     98    double gather_walltime;
     99    double gather_cputime;
     100    double gather_flops;
    98101  } times;
    99102
     
    117120    ar & positions;
    118121    ar & charges;
    119     ar & times.walltime;
    120     ar & times.cputime;
    121     ar & times.flops;
     122    ar & times.total_walltime;
     123    ar & times.total_cputime;
     124    ar & times.total_flops;
     125    ar & times.gather_walltime;
     126    ar & times.gather_cputime;
     127    ar & times.gather_flops;
    122128  }
    123129};
  • src/Jobs/MPQCDataFused.hpp

    rde84ef r4aee30  
    4444
    4545  // keys for times_t
    46   struct times_walltime {};
    47   struct times_cputime {};
    48   struct times_flops {};
     46  struct times_total_walltime {};
     47  struct times_total_cputime {};
     48  struct times_total_flops {};
     49  struct times_gather_walltime {};
     50  struct times_gather_cputime {};
     51  struct times_gather_flops {};
    4952}
    5053
  • src/Jobs/MPQCDataMap.hpp

    rde84ef r4aee30  
    111111 */
    112112typedef boost::fusion::map<
    113   boost::fusion::pair<MPQCDataFused::times_walltime, double >
    114   , boost::fusion::pair<MPQCDataFused::times_cputime, double >
    115   , boost::fusion::pair<MPQCDataFused::times_flops, double >
     113  boost::fusion::pair<MPQCDataFused::times_total_walltime, double >
     114  , boost::fusion::pair<MPQCDataFused::times_total_cputime, double >
     115  , boost::fusion::pair<MPQCDataFused::times_total_flops, double >
     116  , boost::fusion::pair<MPQCDataFused::times_gather_walltime, double >
     117  , boost::fusion::pair<MPQCDataFused::times_gather_cputime, double >
     118  , boost::fusion::pair<MPQCDataFused::times_gather_flops, double >
    116119> MPQCDataTimeMap_t;
    117120
    118121typedef boost::mpl::list<
    119     MPQCDataFused::times_walltime,
    120     MPQCDataFused::times_cputime,
    121     MPQCDataFused::times_flops
     122    MPQCDataFused::times_total_walltime,
     123    MPQCDataFused::times_total_cputime,
     124    MPQCDataFused::times_total_flops,
     125    MPQCDataFused::times_gather_walltime,
     126    MPQCDataFused::times_gather_cputime,
     127    MPQCDataFused::times_gather_flops
    122128> MPQCDataTimeVector_t;
    123129
  • src/Jobs/MPQCData_printKeyNames.hpp

    rde84ef r4aee30  
    4141        (forces) \
    4242        (sampled_grid) \
    43         (times_walltime) \
    44         (times_cputime) \
    45         (times_flops)
     43        (times_total_walltime) \
     44        (times_total_cputime) \
     45        (times_total_flops) \
     46  (times_gather_walltime) \
     47  (times_gather_cputime) \
     48  (times_gather_flops)
    4649
    4750/// we take note of the number of keys in tokensequence as (local) loop bounds below
Note: See TracChangeset for help on using the changeset viewer.