ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
MemoryTest Class Reference
Inheritance diagram for MemoryTest:
Collaboration diagram for MemoryTest:

Protected Member Functions

void TearDown ()

Protected Attributes

double factor = 1.0 / 1024.0 / 1024.0
double complex_matrix_mem = 2*sizeof(double) * factor
double double_mem = sizeof(double) * factor
double int_mem = sizeof(int) * factor
double bool_mem = sizeof(bool) * factor
double float_mem = sizeof(float) * factor
double short_mem = sizeof(short) * factor
int n = 1024
std::string output
std::ofstream ofs
std::ifstream ifs

Detailed Description

  • Tested Functions:
    • calculate_mem
      • caculate memory consumed for various types
      • of data
    • record
      • record memory consumed during running
    • print_all
      • print memory consumed (> MB) in a
      • std::ofstream file

Member Function Documentation

◆ TearDown()

void MemoryTest::TearDown ( )
inlineprotected

Member Data Documentation

◆ bool_mem

double MemoryTest::bool_mem = sizeof(bool) * factor
protected

◆ complex_matrix_mem

double MemoryTest::complex_matrix_mem = 2*sizeof(double) * factor
protected

◆ double_mem

double MemoryTest::double_mem = sizeof(double) * factor
protected

◆ factor

double MemoryTest::factor = 1.0 / 1024.0 / 1024.0
protected

◆ float_mem

double MemoryTest::float_mem = sizeof(float) * factor
protected

◆ ifs

std::ifstream MemoryTest::ifs
protected

◆ int_mem

double MemoryTest::int_mem = sizeof(int) * factor
protected

◆ n

int MemoryTest::n = 1024
protected

◆ ofs

std::ofstream MemoryTest::ofs
protected

◆ output

std::string MemoryTest::output
protected

◆ short_mem

double MemoryTest::short_mem = sizeof(short) * factor
protected

The documentation for this class was generated from the following file: