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

Memory allocation


Functions

void * cps::pmalloc (size_t request)
 Allocate memory.
void cps::pfree (void *p)
 Free allocate memory.
void cps::pclear (void)
 Doesn't appear to do anything.
void * cps::smalloc (size_t request, const char *vname, const char *fname="smalloc", const char *cname="")
 Allocate memory.
void * cps::smalloc (size_t request)
void * cps::smalloc (const char *cname, const char *fname, const char *vname, size_t request)
 Allocate memory.
void cps::sfree (void *p, const char *vname="", const char *fname="sfree", const char *cname="")
 Free allocate memory.
void cps::sfree (const char *cname, const char *fname, const char *vname, void *p)
 Free memory.
void cps::sclear ()
 Doesn't appear to do anything.
void * cps::fmalloc (size_t request, const char *vname, const char *fname="fmalloc", const char *cname="")
 Allocate memory.
void * cps::fmalloc (size_t request)
void cps::ffree (void *p, const char *vname="", const char *fname="ffree", const char *cname="")
 Free allocate memory.
void cps::ffree (const char *cname, const char *fname, const char *vname, void *p)
void * cps::fmalloc (const char *cname, const char *fname, const char *vname, size_t request)
 Allocate memory.

Function Documentation

void cps::ffree const char *  cname,
const char *  fname,
const char *  vname,
void *  p
 

Definition at line 28 of file smalloc_common.C.

Referenced by cps::p4_destroy_dirac_buf_g(), cps::stag_destroy_dirac_buf_g(), cps::stag_dirac_init_g(), and cps::TempBufAlloc::~TempBufAlloc().

void cps::ffree void *  p,
const char *  vname = "",
const char *  fname = "ffree",
const char *  cname = ""
 

Free allocate memory.

With verbose reporting of allocation details, if the appropriate Verbose level is enabled.

Parameters:
p Pointer to the memory to be freed.
vname The name of the variable pointing to the allocated memory.
fname The name of the calling function or method
cname The name of the calling class

Definition at line 26 of file fmalloc.C.

References cps::sfree().

Referenced by cps::Lattice::Convert(), cps::GimprOLSym::EvolveMomGforce(), cps::FdwfBase::Fconvert(), cps::DiracOp::MInvCG(), cps::Fp4::RHMC_EvolveMomFforce(), cps::Fasqtad::RHMC_EvolveMomFforce(), cps::Fp4::Smear(), and cps::Fasqtad::Smear().

void * cps::fmalloc const char *  cname,
const char *  fname,
const char *  vname,
size_t  request
 

Allocate memory.

With verbose reporting of allocation details, if the appropriate Verbose level is enabled.

Parameters:
cname The name of the calling class
fname The name of the calling function or method
vname The name of the variable pointing to the allocated memory.
request The amount of memory (in bytes) to allocate
Returns:
A pointer to the allocated memory
Postcondition:
Exits with the appropriate Error code if allocation fails.

Definition at line 24 of file smalloc_common.C.

Referenced by cps::CanonToAnything(), cps::FcanonToStag(), cps::FcanonToWilson(), cps::FstagToCanon(), cps::FwilsonToCanon(), cps::glb_sum_internal2(), cps::p4_dirac_init_g(), cps::stag_dirac_init_g(), and cps::TempBufAlloc::TempBufAlloc().

void * cps::fmalloc size_t  request  ) 
 

Definition at line 22 of file fmalloc.C.

References cps::smalloc().

void * cps::fmalloc size_t  request,
const char *  vname,
const char *  fname = "fmalloc",
const char *  cname = ""
 

Allocate memory.

Allocates in fast memory (EDRAM) on the QCDOC. If this fails, then allocation of transient DDR memory is attempted. With verbose reporting of allocation details, if the appropriate Verbose level is enabled.

Parameters:
request The amount of memory (in bytes) to allocate
vname The name of the variable pointing to the allocated memory.
fname The name of the calling function or method
cname The name of the calling class
Returns:
A pointer to the allocated memory
Postcondition:
Exits with the appropriate Error code if allocation fails.

Definition at line 15 of file fmalloc.C.

References cps::smalloc().

Referenced by cps::Lattice::Convert(), cps::Fp4::EvolveMomFforce(), cps::Fasqtad::EvolveMomFforce(), cps::GimprOLSym::EvolveMomGforce(), cps::FdwfBase::Fconvert(), cps::LatData::Init(), cps::DiracOp::MInvCG(), cps::Fp4::RHMC_EvolveMomFforce(), cps::Fasqtad::RHMC_EvolveMomFforce(), cps::Fp4::Smear(), and cps::Fasqtad::Smear().

void cps::pclear void   ) 
 

Doesn't appear to do anything.

Definition at line 24 of file pmalloc.C.

void cps::pfree void *  p  ) 
 

Free allocate memory.

Parameters:
p Pointer to the memory to be freed.

Definition at line 19 of file pmalloc.C.

void * cps::pmalloc size_t  request  ) 
 

Allocate memory.

Exits with the appropriate Error code if allocation fails.

Parameters:
request The amount of memory (in bytes) to allocate
Returns:
A pointer to the allocated memory

Definition at line 15 of file pmalloc.C.

References cps::smalloc().

Referenced by cps::Lattice::Lattice().

void cps::sclear  ) 
 

Doesn't appear to do anything.

Definition at line 155 of file smalloc.C.

void cps::sfree const char *  cname,
const char *  fname,
const char *  vname,
void *  p
 

Free memory.

With verbose reporting of details, if the appropriate Verbose level is enabled.

Parameters:
cname The name of the calling class
fname The name of the calling function or method
vname The name of the variable pointing to the allocated memory.
p Pointer to the memory to be freed.

Definition at line 20 of file smalloc_common.C.

References cps::sfree().

void cps::sfree void *  p,
const char *  vname = "",
const char *  fname = "sfree",
const char *  cname = ""
 

Free allocate memory.

With verbose reporting of allocation details, if the appropriate Verbose level is enabled.

Parameters:
p Pointer to the memory to be freed.
vname The name of the variable pointing to the allocated memory.
fname The name of the calling function or method
cname The name of the calling class
Postcondition:
Exits with the appropriate Error code if allocation fails.

Definition at line 148 of file smalloc.C.

Referenced by cps::FwilsonTm::BhamiltonNode(), cps::Fwilson::BhamiltonNode(), cps::FdwfBase::BhamiltonNode(), cps::Fclover::BhamiltonNode(), cps::DiracOpWilsonTypes::BiCGstab(), cps::QPropW::CG(), cps::WspectExtendedMesons::collect(), cps::QPropW::Delete(), cps::QPropW::DeleteQPropLs(), cps::QPropWRand::DeleteRsrc(), cps::AlgHmcRHMC::dynamicalApprox(), cps::AlgActionFermion::energy(), cps::AlgActionQuotient::evolve(), cps::FwilsonTm::EvolveMomFforce(), cps::Fwilson::EvolveMomFforce(), cps::Fp4::EvolveMomFforce(), cps::FdwfBase::EvolveMomFforce(), cps::Fclover::EvolveMomFforce(), cps::Fasqtad::EvolveMomFforce(), cps::Fwilson::FeigSolv(), cps::FdwfBase::FeigSolv(), cps::Fclover::FeigSolv(), cps::Lattice::FixGauge(), cps::Lattice::FixGaugeFree(), cps::Fp4::FmatEvlMInv(), cps::FdwfBase::Freflex(), cps::FermionVectorTp::GaussianSmearVector(), cps::AlgActionFermion::heatbath(), cps::AlgActionBoson::heatbath(), cps::DiracOp::InvCg(), cps::DiracOp::Jacobi(), cps::DiracOpWilsonTypes::MatDagMat(), cps::DiracOpClover::MatDagMatDbg(), cps::DiracOpWilson::MatHerm(), cps::DiracOpDwf::MatHerm(), cps::DiracOpClover::MatHerm(), cps::MatHermElements(), cps::DiracOpWilson::MatInv(), cps::DiracOpStag::MatInv(), cps::DiracOpP4::MatInv(), cps::DiracOpDwf::MatInv(), cps::DiracOpAsqtad::MatInv(), cps::QPropW::MeasConAxialOld(), cps::QPropW::MeasJ5qPion(), cps::DiracOp::MinResExt(), cps::DiracOp::MInvCG(), cps::Vector::NormSqArraySliceSum(), cps::CorrFunc::operator=(), cps::QPropW::ReLoad(), cps::QPropW::RestoreQProp(), cps::Fwilson::RHMC_EvolveMomFforce(), cps::Fstag::RHMC_EvolveMomFforce(), cps::Fp4::RHMC_EvolveMomFforce(), cps::FdwfBase::RHMC_EvolveMomFforce(), cps::Fasqtad::RHMC_EvolveMomFforce(), cps::DiracOp::Ritz(), cps::DiracOpWilsonTypes::RitzEig(), cps::DiracOpStagTypes::RitzEig(), cps::WspectFuzzing::run(), cps::AlgNLStagMeson::run(), cps::AlgStagNonLocal::run(), cps::AlgStagNucleon::run(), cps::AlgStagMomMeson::run(), cps::AlgStagMeson::run(), cps::AlgRotateGauge::run(), cps::QPropW::Run(), cps::AlgPbp::run(), cps::AlgHQPotential::run(), cps::AlgFixGauge::run(), cps::AlgEig::run(), cps::AlgPbp::runPointSource(), cps::AlgActionRational::setSplit(), cps::GlobalDataShift::Shift(), cps::QPropWRand::ShiftPropBackward(), cps::QPropW::ShiftPropBackward(), cps::QPropWRand::ShiftPropForward(), cps::QPropW::ShiftPropForward(), cps::FermionVector::sumOverHyperPlane(), cps::FermionVector::sumOverHyperPlaneStride(), cps::WspectQuark::WspectQuark(), cps::AlgActionBilinear::~AlgActionBilinear(), cps::AlgActionRationalSplit::~AlgActionRationalSplit(), cps::AlgDens::~AlgDens(), cps::AlgEig::~AlgEig(), cps::AlgHmc::~AlgHmc(), cps::AlgHmcPhi::~AlgHmcPhi(), cps::AlgHmcQPQ::~AlgHmcQPQ(), cps::AlgHmcRHMC::~AlgHmcRHMC(), cps::AlgHmd::~AlgHmd(), cps::AlgHmdR::~AlgHmdR(), cps::AlgHmdR2::~AlgHmdR2(), cps::AlgMom::~AlgMom(), cps::AlgMomentum::~AlgMomentum(), cps::AlgPbp::~AlgPbp(), cps::CheckSum::~CheckSum(), cps::DiracOpAsqtad::~DiracOpAsqtad(), cps::DiracOpP4::~DiracOpP4(), cps::DiracOpStag::~DiracOpStag(), cps::dump_xml::~dump_xml(), cps::Fclover::~Fclover(), cps::FermionVector::~FermionVector(), cps::FermionVectorTp::~FermionVectorTp(), cps::FixHPlane::~FixHPlane(), cps::Fsmear::~Fsmear(), cps::FstagTypes::~FstagTypes(), cps::HadronPropS::~HadronPropS(), cps::HyperPlane::~HyperPlane(), cps::LatData::~LatData(), cps::LinkBuffer::~LinkBuffer(), cps::LRGState::~LRGState(), cps::Mom::~Mom(), cps::NLocalPropS::~NLocalPropS(), cps::NLSMesonPropS::~NLSMesonPropS(), cps::QPropWGFLfuncSrc::~QPropWGFLfuncSrc(), cps::QuarkPropS::~QuarkPropS(), cps::QuarkPropSMng::~QuarkPropSMng(), cps::WspectAxialCurrent::~WspectAxialCurrent(), cps::WspectBaryon::~WspectBaryon(), cps::WspectExtendedMesons::~WspectExtendedMesons(), cps::WspectExtendedMesonsBE::~WspectExtendedMesonsBE(), cps::WspectField::~WspectField(), cps::WspectFuzzing::~WspectFuzzing(), cps::WspectMesons::~WspectMesons(), cps::WspectMomenta::~WspectMomenta(), and cps::WspectQuark::~WspectQuark().

void * cps::smalloc const char *  cname,
const char *  fname,
const char *  vname,
size_t  request
 

Allocate memory.

With verbose reporting of allocation details, if the appropriate Verbose level is enabled.

Parameters:
cname The name of the calling class
fname The name of the calling function or method
vname The name of the variable pointing to the allocated memory.
request The amount of memory (in bytes) to allocate
Returns:
A pointer to the allocated memory
Postcondition:
Exits with the appropriate Error code if allocation fails.

Definition at line 12 of file smalloc_common.C.

References cps::smalloc().

void * cps::smalloc size_t  request  ) 
 

Definition at line 16 of file smalloc_common.C.

References cps::smalloc().

void * cps::smalloc size_t  request,
const char *  vname,
const char *  fname = "smalloc",
const char *  cname = ""
 

Allocate memory.

With verbose reporting of allocation details, if the appropriate Verbose level is enabled.

Parameters:
request The amount of memory (in bytes) to allocate
vname The name of the variable pointing to the allocated memory.
fname The name of the calling function or method
cname The name of the calling class
Returns:
A pointer to the allocated memory
Postcondition:
Program exits with the appropriate Error code if allocation fails.

Definition at line 139 of file smalloc.C.

References cps::Error::Pointer().

Referenced by cps::AlgActionBilinear::AlgActionBilinear(), cps::AlgActionBoson::AlgActionBoson(), cps::AlgActionFermion::AlgActionFermion(), cps::AlgActionQuotient::AlgActionQuotient(), cps::AlgActionRational::AlgActionRational(), cps::AlgActionRationalQuotient::AlgActionRationalQuotient(), cps::AlgActionRationalSplit::AlgActionRationalSplit(), cps::AlgDens::AlgDens(), cps::AlgEig::AlgEig(), cps::AlgHmc::AlgHmc(), cps::AlgHmcPhi::AlgHmcPhi(), cps::AlgHmcQPQ::AlgHmcQPQ(), cps::AlgHmd::AlgHmd(), cps::AlgHmdR::AlgHmdR(), cps::AlgHmdR2::AlgHmdR2(), cps::AlgMom::AlgMom(), cps::AlgMomentum::AlgMomentum(), cps::AlgPbp::AlgPbp(), cps::QPropW::Allocate(), cps::QPropWRand::AllocateRsrc(), cps::FwilsonTm::BhamiltonNode(), cps::Fwilson::BhamiltonNode(), cps::FdwfBase::BhamiltonNode(), cps::Fclover::BhamiltonNode(), cps::DiracOpWilsonTypes::BiCGstab(), cps::QPropW::CG(), cps::WspectExtendedMesons::collect(), cps::CorrFunc::CorrFunc(), cps::AlgActionRational::destroyCgArg(), cps::DiracOpAsqtad::DiracOpAsqtad(), cps::DiracOpP4::DiracOpP4(), cps::DiracOpStag::DiracOpStag(), cps::dump_xml::dump_xml(), cps::AlgHmcRHMC::dynamicalApprox(), cps::AlgActionFermion::energy(), cps::WspectMesons::Everything(), cps::AlgActionQuotient::evolve(), cps::FwilsonTm::EvolveMomFforce(), cps::Fwilson::EvolveMomFforce(), cps::Fp4::EvolveMomFforce(), cps::FdwfBase::EvolveMomFforce(), cps::Fclover::EvolveMomFforce(), cps::Fasqtad::EvolveMomFforce(), cps::Fclover::Fclover(), cps::Fwilson::FeigSolv(), cps::FdwfBase::FeigSolv(), cps::Fclover::FeigSolv(), cps::FermionVector::FermionVector(), cps::FermionVectorTp::FermionVectorTp(), cps::Lattice::FixGauge(), cps::Lattice::FixGaugeAllocate(), cps::FixHPlane::FixHPlane(), cps::Fp4::FmatEvlMInv(), cps::FdwfBase::Freflex(), cps::Fsmear::Fsmear(), cps::FstagTypes::FstagTypes(), cps::FermionVectorTp::GaussianSmearVector(), cps::HadronPropS::HadronPropS(), cps::AlgActionFermion::heatbath(), cps::AlgActionBoson::heatbath(), cps::HyperPlane::HyperPlane(), cps::LatData::Init(), cps::Mom::Init(), cps::CheckSum::Initialize(), cps::DiracOp::InvCg(), cps::DiracOp::Jacobi(), cps::LinkBuffer::LinkBuffer(), cps::LRGState::LRGState(), cps::DiracOpWilsonTypes::MatDagMat(), cps::DiracOpClover::MatDagMatDbg(), cps::DiracOpWilson::MatHerm(), cps::DiracOpDwf::MatHerm(), cps::DiracOpClover::MatHerm(), cps::MatHermElements(), cps::DiracOpWilson::MatInv(), cps::DiracOpStag::MatInv(), cps::DiracOpP4::MatInv(), cps::DiracOpDwf::MatInv(), cps::DiracOpAsqtad::MatInv(), cps::QPropW::MeasConAxialOld(), cps::QPropW::MeasJ5qPion(), cps::DiracOp::MinResExt(), cps::DiracOp::MInvCG(), cps::NLocalPropS::NLocalPropS(), cps::NLSMesonPropS::NLSMesonPropS(), cps::Vector::NormSqArraySliceSum(), cps::CorrFunc::operator=(), cps::QuarkPropSMng::qadd(), cps::QPropW::QPropW(), cps::QPropWGFLfuncSrc::QPropWGFLfuncSrc(), cps::QuarkPropSMng::QuarkPropSMng(), cps::QPropW::ReLoad(), cps::QPropW::RestoreQProp(), cps::QPropW::RestoreQPropLs_ftom(), cps::Fwilson::RHMC_EvolveMomFforce(), cps::Fstag::RHMC_EvolveMomFforce(), cps::Fp4::RHMC_EvolveMomFforce(), cps::FdwfBase::RHMC_EvolveMomFforce(), cps::Fasqtad::RHMC_EvolveMomFforce(), cps::DiracOp::Ritz(), cps::DiracOpWilsonTypes::RitzEig(), cps::DiracOpStagTypes::RitzEig(), cps::WspectFuzzing::run(), cps::AlgNLStagMeson::run(), cps::AlgStagNonLocal::run(), cps::AlgStagNucleon::run(), cps::AlgStagMomMeson::run(), cps::AlgStagMeson::run(), cps::AlgRotateGauge::run(), cps::QPropW::Run(), cps::AlgPbp::run(), cps::AlgHQPotential::run(), cps::AlgFixGauge::run(), cps::AlgEig::run(), cps::AlgPbp::runPointSource(), cps::QuarkPropS::setupQuarkPropS(), cps::GlobalDataShift::Shift(), cps::QPropWRand::ShiftPropBackward(), cps::QPropW::ShiftPropBackward(), cps::QPropWRand::ShiftPropForward(), cps::QPropW::ShiftPropForward(), cps::FermionVector::sumOverHyperPlane(), cps::FermionVector::sumOverHyperPlaneStride(), cps::WspectAxialCurrent::WspectAxialCurrent(), cps::WspectField::WspectField(), cps::WspectFuzzing::WspectFuzzing(), cps::WspectMomenta::WspectMomenta(), and cps::WspectQuark::WspectQuark().


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