Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Timing and performance functions


Functions

Float cps::dclock (void)
 Gets the wall-clock time.
Float cps::print_time (const char *cname, const char *fname, Float time)
Float cps::print_flops (unsigned long long nflops, Float time)
 Prints the FLOPS rate to stdout.
Float cps::print_flops (char *cname, char *fname, unsigned long long nflops, Float time)
 Prints the FLOPS rate to stdout.
Float cps::print_flops (unsigned long long nflops, struct timeval *start, struct timeval *end)
 Prints the FLOPS rate to stdout.
Float cps::print_flops (char *cname, char *fname, unsigned long long nflops, struct timeval *start, struct timeval *end)
 Prints the FLOPS rate to stdout.

Function Documentation

Float cps::dclock void   ) 
 

Gets the wall-clock time.

Returns:
The current time in seconds (accurate to the microsecond),

Definition at line 31 of file time.C.

Referenced by cps::DiracOpDwf::DiracOpDwf(), cps::dwf_m(), cps::Fp4::EvolveMomFforce(), cps::FdwfBase::EvolveMomFforce(), cps::Fasqtad::EvolveMomFforce(), cps::Gwilson::EvolveMomGforce(), cps::GtadpoleRect::EvolveMomGforce(), cps::GimprRect::EvolveMomGforce(), cps::GimprOLSym::EvolveMomGforce(), cps::FdwfBase::FdwfBase(), cps::moveFloat(), cps::moveMem(), cps::moveVec(), cps::p4_dirac(), cps::p4_dMdmu(), cps::CheckSum::Print(), cps::Fp4::RHMC_EvolveMomFforce(), cps::FdwfBase::RHMC_EvolveMomFforce(), cps::Fasqtad::RHMC_EvolveMomFforce(), cps::QPropW::Run(), cps::AlgHQPotential::run(), cps::AlgEig::run(), cps::Fp4::Smear(), cps::Fasqtad::Smear(), cps::FermionVector::sumOverHyperPlane(), cps::FermionVector::sumOverHyperPlaneStride(), cps::FermionVector::sumOverHyperPlaneZeroMom(), cps::wilson_dslash(), cps::LatRngWrite::write(), cps::DiracOpDwf::~DiracOpDwf(), and cps::FdwfBase::~FdwfBase().

Float cps::print_flops char *  cname,
char *  fname,
unsigned long long  nflops,
struct timeval *  start,
struct timeval *  end
 

Prints the FLOPS rate to stdout.

The user counts the operations and calls gettimeofday before they start and after they finish to get the elapsed time. The class name and method name are printed with the FLOPS rate.

Parameters:
cname The class name.
fname The method name.
n_flops The number of floating point operations performed
start The initial result of calling gettimeofday
end The final result of calling gettimeofday
Returns:
The FLOPS rate.

Definition at line 66 of file time.C.

References cps::MPISCU::printf(), and cps::UniqueID().

Referenced by AsqD::Dslash(), cps::moveFloat(), cps::moveMem(), cps::moveVec(), cps::p4_dirac(), cps::p4_dMdmu(), cps::print_flops(), and cps::wilson_dslash().

Float cps::print_flops unsigned long long  nflops,
struct timeval *  start,
struct timeval *  end
 

Prints the FLOPS rate to stdout.

The user counts the operations and calls gettimeofday before they start and after they finish to get the elapsed time.

Parameters:
n_flops The number of floating point operations performed
start The initial result of calling gettimeofday
end The final result of calling gettimeofday
Returns:
The FLOPS rate.

Definition at line 46 of file time.C.

References cps::MPISCU::printf(), and cps::UniqueID().

Float cps::print_flops char *  cname,
char *  fname,
unsigned long long  nflops,
Float  time
 

Prints the FLOPS rate to stdout.

The user counts the operations and calls dclock before they start and after they finish to get the elapsed time. The class name and method name are printed with the FLOPS rate.

Parameters:
cname The class name.
fname The method name.
n_flops The number of floating point operations performed.
time The elapsed time in seconds.
Returns:
The FLOPS rate.

Definition at line 102 of file time.C.

References cps::print_flops(), cps::MPISCU::printf(), and cps::UniqueID().

Float cps::print_flops unsigned long long  nflops,
Float  time
 

Prints the FLOPS rate to stdout.

Definition at line 85 of file time.C.

References cps::MPISCU::printf(), and cps::UniqueID().

Referenced by cps::DiracOpWilsonTypes::BiCGstab(), cps::DiracOpDwf::DiracOpDwf(), cps::Fp4::EvolveMomFforce(), cps::FdwfBase::EvolveMomFforce(), cps::Fasqtad::EvolveMomFforce(), cps::Gwilson::EvolveMomGforce(), cps::GtadpoleRect::EvolveMomGforce(), cps::GimprRect::EvolveMomGforce(), cps::GimprOLSym::EvolveMomGforce(), cps::DiracOp::InvCg(), cps::DiracOpP4::MatInv(), cps::DiracOpP4::MatPcDagMatPc(), cps::DiracOpAsqtad::MatPcDagMatPc(), cps::DiracOp::MInvCG(), cps::CheckSum::Print(), cps::ReadLatticeParallel::read(), cps::Fp4::RHMC_EvolveMomFforce(), cps::FdwfBase::RHMC_EvolveMomFforce(), cps::Fasqtad::RHMC_EvolveMomFforce(), cps::AlgEig::run(), cps::Fp4::Smear(), cps::Fasqtad::Smear(), cps::FermionVector::sumOverHyperPlane(), cps::FermionVector::sumOverHyperPlaneStride(), cps::FermionVector::sumOverHyperPlaneZeroMom(), cps::WriteLatticeParallel::write(), and cps::DiracOpDwf::~DiracOpDwf().

Float cps::print_time const char *  cname,
const char *  fname,
Float  time
 

The user counts the operations and calls dclock before they start and after they finish to get the elapsed time.

Parameters:
n_flops The number of floating point operations performed
time The elapsed time in seconds.
Returns:
The FLOPS rate.

Definition at line 79 of file time.C.

References cps::MPISCU::printf(), and cps::UniqueID().

Referenced by cps::dwf_m(), cps::QPropW::Run(), wfm_dslash_two(), cps::LatRngWrite::write(), and cps::FdwfBase::~FdwfBase().


Generated on Sat Oct 10 14:11:52 2009 for Columbia Physics System by  doxygen 1.3.9.1