OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DataRecyclerUtil Class Reference

#include <DataRecycler.h>

Static Public Member Functions

static std::string getDeviceIdentifierString (DeviceIdentifier device_identifier)
 

Static Public Attributes

static constexpr DeviceIdentifier CPU_DEVICE_IDENTIFIER = 0
 

Detailed Description

Definition at line 134 of file DataRecycler.h.

Member Function Documentation

static std::string DataRecyclerUtil::getDeviceIdentifierString ( DeviceIdentifier  device_identifier)
inlinestatic

Definition at line 138 of file DataRecycler.h.

References CPU_DEVICE_IDENTIFIER, and to_string().

Referenced by HashingSchemeRecycler::clearCache(), OverlapsTuningParamRecycler::clearCache(), ChunkMetadataRecycler::clearCache(), ResultSetRecycler::clearCache(), HashtableRecycler::clearCache(), ChunkMetadataRecycler::getItemFromCache(), HashingSchemeRecycler::putItemToCache(), OverlapsTuningParamRecycler::putItemToCache(), ChunkMetadataRecycler::putItemToCache(), ResultSetRecycler::putItemToCache(), HashtableRecycler::putItemToCache(), HashingSchemeRecycler::removeItemFromCache(), OverlapsTuningParamRecycler::removeItemFromCache(), ChunkMetadataRecycler::removeItemFromCache(), ResultSetRecycler::removeItemFromCache(), HashtableRecycler::removeItemFromCache(), HashingSchemeRecycler::toString(), ChunkMetadataRecycler::toString(), ResultSetRecycler::toString(), and HashtableRecycler::toString().

138  {
139  std::string device_type = device_identifier == CPU_DEVICE_IDENTIFIER ? "CPU" : "GPU-";
140  return device_identifier != CPU_DEVICE_IDENTIFIER
141  ? device_type.append(std::to_string(device_identifier))
142  : device_type;
143  }
std::string to_string(char const *&&v)
static constexpr DeviceIdentifier CPU_DEVICE_IDENTIFIER
Definition: DataRecycler.h:136

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation


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