OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExecutorResourceMgr_Namespace::ResourceGrant Struct Reference

Specifies the resources of each type for a given resource grant. More...

#include <ExecutorResourcePool.h>

Public Member Functions

bool is_empty () const
 
void print () const
 
std::string to_string () const
 

Public Attributes

size_t cpu_slots {0}
 
size_t gpu_slots {0}
 
size_t cpu_result_mem {0}
 
bool buffer_mem_gated_per_slot {false}
 
size_t buffer_mem_per_slot {0}
 
size_t buffer_mem_for_given_slots {0}
 

Detailed Description

Specifies the resources of each type for a given resource grant.

Definition at line 176 of file ExecutorResourcePool.h.

Member Function Documentation

bool ExecutorResourceMgr_Namespace::ResourceGrant::is_empty ( ) const
inline

Definition at line 186 of file ExecutorResourcePool.h.

References cpu_result_mem, cpu_slots, and gpu_slots.

Referenced by ExecutorResourceMgr_Namespace::ExecutorResourceMgr::release_resources().

+ Here is the caller graph for this function:

void ExecutorResourceMgr_Namespace::ResourceGrant::print ( ) const

Definition at line 34 of file ExecutorResourcePool.cpp.

References cpu_result_mem, cpu_slots, format_num_bytes(), and gpu_slots.

34  {
35  std::cout << std::endl << "Request Grant Info" << std::endl;
36  std::cout << "Grant CPU slots: " << cpu_slots << std::endl;
37  std::cout << "Grant GPU slots: " << gpu_slots << std::endl;
38  std::cout << "Grant CPU result mem: " << format_num_bytes(cpu_result_mem) << std::endl;
39 }
std::string format_num_bytes(const size_t bytes)

+ Here is the call graph for this function:

std::string ExecutorResourceMgr_Namespace::ResourceGrant::to_string ( ) const

Definition at line 41 of file ExecutorResourcePool.cpp.

References cpu_result_mem, cpu_slots, format_num_bytes(), and gpu_slots.

41  {
42  std::ostringstream oss;
43  oss << "Granted CPU Slots: " << cpu_slots << " GPU Slots: " << gpu_slots
44  << " CPU result mem: " << format_num_bytes(cpu_result_mem);
45  return oss.str();
46 }
std::string format_num_bytes(const size_t bytes)

+ Here is the call graph for this function:

Member Data Documentation


The documentation for this struct was generated from the following files: