XGCa
Classes | Functions
memory_usage.cpp File Reference
#include "memory_usage.hpp"
#include "globals.hpp"
#include "sys/types.h"
#include "sys/sysinfo.h"
Include dependency graph for memory_usage.cpp:

Classes

struct  NetworkMemoryStats
 

Functions

int get_local_cpu_mem_usage (double &total_db, double &free_db)
 
int get_local_gpu_mem_usage (double &total_db, double &free_db)
 
NetworkMemoryStats get_cpu_mem_stats ()
 
NetworkMemoryStats get_gpu_mem_stats ()
 
void print_mem_usage (const std::string &str)
 
void print_mem_usage (const std::string &str, int comm_rank)
 

Function Documentation

◆ get_cpu_mem_stats()

NetworkMemoryStats get_cpu_mem_stats ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_gpu_mem_stats()

NetworkMemoryStats get_gpu_mem_stats ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_local_cpu_mem_usage()

int get_local_cpu_mem_usage ( double &  total_db,
double &  free_db 
)
Here is the caller graph for this function:

◆ get_local_gpu_mem_usage()

int get_local_gpu_mem_usage ( double &  total_db,
double &  free_db 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_mem_usage() [1/2]

void print_mem_usage ( const std::string &  str)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_mem_usage() [2/2]

void print_mem_usage ( const std::string &  str,
int  comm_rank 
)
Here is the call graph for this function: