OmniSciDB
a5dc49c757
|
#include <BoundingBoxIntersectTuningParamRecycler.h>
Public Member Functions | |
BoundingBoxIntersectTuningParamRecycler () | |
std::numeric_limits () | |
std::numeric_limits () | |
std::optional< AutoTunerMetaInfo > | getItemFromCache (QueryPlanHash key, CacheItemType item_type, DeviceIdentifier device_identifier, std::optional< EMPTY_META_INFO > meta_info=std::nullopt) override |
void | putItemToCache (QueryPlanHash key, std::optional< AutoTunerMetaInfo > item, CacheItemType item_type, DeviceIdentifier device_identifier, size_t item_size, size_t compute_time, std::optional< EMPTY_META_INFO > meta_info=std::nullopt) override |
void | initCache () override |
void | clearCache () override |
void | markCachedItemAsDirty (size_t table_key, std::unordered_set< QueryPlanHash > &key_set, CacheItemType item_type, DeviceIdentifier device_identifier) override |
std::string | toString () const override |
Public Member Functions inherited from DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO > | |
DataRecycler (const std::vector< CacheItemType > &item_types, size_t total_cache_size, size_t max_item_size, int num_gpus) | |
virtual | ~DataRecycler ()=default |
void | markCachedItemAsDirtyImpl (QueryPlanHash key, CachedItemContainer &m) const |
bool | isCachedItemDirty (QueryPlanHash key, CachedItemContainer &m) const |
std::shared_ptr < CachedItemContainer > | getCachedItemContainer (CacheItemType item_type, DeviceIdentifier device_identifier) const |
std::optional< CachedItem < std::optional < AutoTunerMetaInfo > , EMPTY_META_INFO > > | getCachedItemWithoutConsideringMetaInfo (QueryPlanHash key, CacheItemType item_type, DeviceIdentifier device_identifier, CachedItemContainer &m, std::lock_guard< std::mutex > &lock) |
size_t | getCurrentNumCachedItems (CacheItemType item_type, DeviceIdentifier device_identifier) const |
size_t | getCurrentNumDirtyCachedItems (CacheItemType item_type, DeviceIdentifier device_identifier) const |
size_t | getCurrentNumCleanCachedItems (CacheItemType item_type, DeviceIdentifier device_identifier) const |
size_t | getCurrentCacheSizeForDevice (CacheItemType item_type, DeviceIdentifier device_identifier) const |
std::shared_ptr< CacheItemMetric > | getCachedItemMetric (CacheItemType item_type, DeviceIdentifier device_identifier, QueryPlanHash key) const |
void | setTotalCacheSize (CacheItemType item_type, size_t new_total_cache_size) |
void | setMaxCacheItemSize (CacheItemType item_type, size_t new_max_cache_item_size) |
Private Member Functions | |
bool | hasItemInCache (QueryPlanHash key, CacheItemType item_type, DeviceIdentifier device_identifier, std::lock_guard< std::mutex > &lock, std::optional< EMPTY_META_INFO > meta_info=std::nullopt) const override |
void | removeItemFromCache (QueryPlanHash key, CacheItemType item_type, DeviceIdentifier device_identifier, std::lock_guard< std::mutex > &lock, std::optional< EMPTY_META_INFO > meta_info=std::nullopt) override |
void | cleanupCacheForInsertion (CacheItemType item_type, DeviceIdentifier device_identifier, size_t required_size, std::lock_guard< std::mutex > &lock, std::optional< EMPTY_META_INFO > meta_info=std::nullopt) override |
Definition at line 32 of file BoundingBoxIntersectTuningParamRecycler.h.
|
inline |
Definition at line 38 of file BoundingBoxIntersectTuningParamRecycler.h.
References BBOX_INTERSECT_AUTO_TUNER_PARAM.
|
inlineoverrideprivatevirtual |
Implements DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >.
Definition at line 87 of file BoundingBoxIntersectTuningParamRecycler.h.
References UNREACHABLE.
|
overridevirtual |
Implements DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >.
Definition at line 109 of file BoundingBoxIntersectTuningParamRecycler.cpp.
References BBOX_INTERSECT_AUTO_TUNER_PARAM, DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >::getCachedItemContainer(), DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >::getCacheLock(), DataRecyclerUtil::getDeviceIdentifierString(), PARAM_CACHE_DEVICE_IDENTIFIER, and VLOG.
|
overridevirtual |
Implements DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >.
Definition at line 20 of file BoundingBoxIntersectTuningParamRecycler.cpp.
References BBOX_INTERSECT_AUTO_TUNER_PARAM, CHECK, CHECK_EQ, EMPTY_HASHED_PLAN_DAG_KEY, g_enable_data_recycler, g_use_hashtable_cache, DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >::getCachedItemContainer(), DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >::getCachedItemWithoutConsideringMetaInfo(), DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >::getCacheLock(), DataRecyclerUtil::getDeviceIdentifierString(), and VLOG.
|
overrideprivatevirtual |
Implements DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >.
Definition at line 71 of file BoundingBoxIntersectTuningParamRecycler.cpp.
References BBOX_INTERSECT_AUTO_TUNER_PARAM, CHECK_EQ, EMPTY_HASHED_PLAN_DAG_KEY, g_enable_data_recycler, g_use_hashtable_cache, and DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >::getCachedItemContainer().
|
inlineoverridevirtual |
Implements DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >.
Definition at line 59 of file BoundingBoxIntersectTuningParamRecycler.h.
|
overridevirtual |
Implements DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >.
Definition at line 121 of file BoundingBoxIntersectTuningParamRecycler.cpp.
References BBOX_INTERSECT_AUTO_TUNER_PARAM, CHECK_EQ, g_enable_data_recycler, g_use_hashtable_cache, DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >::getCachedItemContainer(), DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >::getCacheLock(), and DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >::markCachedItemAsDirtyImpl().
|
overridevirtual |
Implements DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >.
Definition at line 44 of file BoundingBoxIntersectTuningParamRecycler.cpp.
References BBOX_INTERSECT_AUTO_TUNER_PARAM, CHECK_EQ, EMPTY_HASHED_PLAN_DAG_KEY, g_enable_data_recycler, g_use_hashtable_cache, DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >::getCachedItemContainer(), DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >::getCachedItemWithoutConsideringMetaInfo(), DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >::getCacheLock(), DataRecyclerUtil::getDeviceIdentifierString(), and VLOG.
|
overrideprivatevirtual |
Implements DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >.
Definition at line 90 of file BoundingBoxIntersectTuningParamRecycler.cpp.
References DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >::getCachedItemContainer(), DataRecyclerUtil::getDeviceIdentifierString(), and VLOG.
BoundingBoxIntersectTuningParamRecycler::std::numeric_limits | ( | ) |
BoundingBoxIntersectTuningParamRecycler::std::numeric_limits | ( | ) |
|
overridevirtual |
Implements DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >.
Definition at line 137 of file BoundingBoxIntersectTuningParamRecycler.cpp.
References BBOX_INTERSECT_AUTO_TUNER_PARAM, DataRecycler< std::optional< AutoTunerMetaInfo >, EMPTY_META_INFO >::getCachedItemContainer(), and PARAM_CACHE_DEVICE_IDENTIFIER.