21#ifndef VOTCA_XTP_MEMORYBUDGET_H
22#define VOTCA_XTP_MEMORYBUDGET_H
48 static void Set(
double total_gb,
Index concurrent_jobs = 1);
70 static std::string
Usage();
Memory the user grants the process (–memory, GB), for choices that trade memory for speed (caches,...
static std::string Usage()
static double PeakResidentBytes()
Peak resident memory of the process so far (-1 if unknown).
static std::string Describe()
e.g. "budget 400 GB, 46.1 GB in use" or "no --memory given"
static void SetConcurrentJobs(Index concurrent_jobs)
static double DefaultAllowanceBytes()
static Index concurrent_jobs_
static void Set(double total_gb, Index concurrent_jobs=1)
total_gb <= 0: no budget given
static double ResidentBytes()
Resident memory of the process (-1 if unknown on this platform).
static double AvailableBytes()
static double total_bytes_
static double JobBudgetBytes()
The share of the budget of one job (0 without a budget).
Provides a means for comparing floating point numbers.