XGC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
memory_usage.hpp
Go to the documentation of this file.
1 #ifndef MEMORY_USAGE_HPP
2 #define MEMORY_USAGE_HPP
3 
4 #include <string>
5 #include "space_settings.hpp"
6 
7 void print_mem_usage(const std::string& str);
8 void print_mem_usage(const std::string& str, int comm_rank);
9 
10 int get_local_cpu_mem_usage(double& total_db, double& free_db);
11 int get_local_gpu_mem_usage(double& total_db, double& free_db);
12 
13 #endif
int get_local_cpu_mem_usage(double &total_db, double &free_db)
Definition: memory_usage.cpp:68
void print_mem_usage(const std::string &str)
Definition: memory_usage.cpp:166
int get_local_gpu_mem_usage(double &total_db, double &free_db)
Definition: memory_usage.cpp:77