OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExecutorResourceMgr_Namespace::QueryNeedsTooMuchBufferPoolMem Class Reference

#include <ExecutorResourceMgrCommon.h>

+ Inheritance diagram for ExecutorResourceMgr_Namespace::QueryNeedsTooMuchBufferPoolMem:
+ Collaboration diagram for ExecutorResourceMgr_Namespace::QueryNeedsTooMuchBufferPoolMem:

Public Member Functions

 QueryNeedsTooMuchBufferPoolMem (const size_t max_buffer_pool_mem, const size_t requested_buffer_pool_mem, const ExecutorDeviceType device_type)
 

Private Member Functions

std::string get_device_type_string (const ExecutorDeviceType device_type)
 

Detailed Description

Definition at line 51 of file ExecutorResourceMgrCommon.h.

Constructor & Destructor Documentation

ExecutorResourceMgr_Namespace::QueryNeedsTooMuchBufferPoolMem::QueryNeedsTooMuchBufferPoolMem ( const size_t  max_buffer_pool_mem,
const size_t  requested_buffer_pool_mem,
const ExecutorDeviceType  device_type 
)
inline

Definition at line 53 of file ExecutorResourceMgrCommon.h.

56  : std::runtime_error(
57  "Query requested more " + get_device_type_string(device_type) +
58  " buffer pool mem (" + format_num_bytes(requested_buffer_pool_mem) +
59  ") than max available for query (" + format_num_bytes(max_buffer_pool_mem) +
60  ") in executor resource pool") {}
std::string get_device_type_string(const ExecutorDeviceType device_type)
std::string format_num_bytes(const size_t bytes)

Member Function Documentation

std::string ExecutorResourceMgr_Namespace::QueryNeedsTooMuchBufferPoolMem::get_device_type_string ( const ExecutorDeviceType  device_type)
inlineprivate

Definition at line 63 of file ExecutorResourceMgrCommon.h.

References CPU, GPU, and UNREACHABLE.

63  {
64  switch (device_type) {
66  return "CPU";
68  return "GPU";
69  default:
70  UNREACHABLE();
71  return "";
72  }
73  }
#define UNREACHABLE()
Definition: Logger.h:338

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