OmniSciDB
a5dc49c757
|
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} |
Specifies the resources of each type for a given resource grant.
Definition at line 176 of file ExecutorResourcePool.h.
|
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().
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.
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.
size_t ExecutorResourceMgr_Namespace::ResourceGrant::buffer_mem_for_given_slots {0} |
Definition at line 184 of file ExecutorResourcePool.h.
Referenced by ExecutorResourceMgr_Namespace::ExecutorResourcePool::add_chunk_requests_to_allocated_pool(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::calc_min_max_resource_grants_for_request(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::determine_dynamic_resource_grant(), and ExecutorResourceMgr_Namespace::ExecutorResourcePool::remove_chunk_requests_from_allocated_pool().
bool ExecutorResourceMgr_Namespace::ResourceGrant::buffer_mem_gated_per_slot {false} |
Definition at line 182 of file ExecutorResourcePool.h.
Referenced by ExecutorResourceMgr_Namespace::ExecutorResourcePool::add_chunk_requests_to_allocated_pool(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::allocate_resources(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::calc_min_max_resource_grants_for_request(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::can_currently_satisfy_chunk_request(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::deallocate_resources(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::determine_dynamic_resource_grant(), and ExecutorResourceMgr_Namespace::ExecutorResourcePool::remove_chunk_requests_from_allocated_pool().
size_t ExecutorResourceMgr_Namespace::ResourceGrant::buffer_mem_per_slot {0} |
Definition at line 183 of file ExecutorResourcePool.h.
Referenced by ExecutorResourceMgr_Namespace::ExecutorResourcePool::calc_min_max_resource_grants_for_request(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::can_currently_satisfy_chunk_request(), and ExecutorResourceMgr_Namespace::ExecutorResourcePool::determine_dynamic_resource_grant().
size_t ExecutorResourceMgr_Namespace::ResourceGrant::cpu_result_mem {0} |
Definition at line 179 of file ExecutorResourcePool.h.
Referenced by ExecutorResourceMgr_Namespace::ExecutorResourcePool::allocate_resources(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::calc_min_max_resource_grants_for_request(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::can_currently_satisfy_request_impl(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::deallocate_resources(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::determine_dynamic_resource_grant(), is_empty(), print(), ExecutorResourceMgr_Namespace::ExecutorResourceMgr::request_resources_with_timeout(), and to_string().
size_t ExecutorResourceMgr_Namespace::ResourceGrant::cpu_slots {0} |
Definition at line 177 of file ExecutorResourcePool.h.
Referenced by ExecutorResourceMgr_Namespace::ExecutorResourcePool::allocate_resources(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::calc_min_max_resource_grants_for_request(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::can_currently_satisfy_chunk_request(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::can_currently_satisfy_request_impl(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::deallocate_resources(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::determine_dynamic_resource_grant(), is_empty(), print(), ExecutorResourceMgr_Namespace::ExecutorResourceMgr::request_resources_with_timeout(), and to_string().
size_t ExecutorResourceMgr_Namespace::ResourceGrant::gpu_slots {0} |
Definition at line 178 of file ExecutorResourcePool.h.
Referenced by ExecutorResourceMgr_Namespace::ExecutorResourcePool::allocate_resources(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::calc_min_max_resource_grants_for_request(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::can_currently_satisfy_request_impl(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::deallocate_resources(), ExecutorResourceMgr_Namespace::ExecutorResourcePool::determine_dynamic_resource_grant(), is_empty(), print(), ExecutorResourceMgr_Namespace::ExecutorResourceMgr::request_resources_with_timeout(), and to_string().