1 #ifndef DEVICE_CODEC_FACTORY_H_ 2 #define DEVICE_CODEC_FACTORY_H_ 9 #include <thrust/device_vector.h> 25 std::vector<genie::query::Query>&,
26 thrust::device_vector<genie::matching::data_t>&,
27 thrust::device_vector<u32>&, int, int,
28 thrust::device_vector<u32>&,
29 thrust::device_vector<u32>&,
30 thrust::device_vector<u32>&);
72 static const std::map<COMPRESSION_TYPE, std::shared_ptr<DeviceIntegerCODEC>>
codecInstancesMap;
80 if (compressionNamesMap.find(type) == compressionNamesMap.end())
81 return "Unknown-Compression-Type";
82 return compressionNamesMap.at(type);
87 if (compressionTypesMap.find(name) == compressionTypesMap.end())
89 return compressionTypesMap.at(name);
94 if (codecInstancesMap.find(type) == codecInstancesMap.end())
99 return codecInstancesMap.at(type);
104 if (integratedKernelsMap.find(type) == integratedKernelsMap.end())
107 "Unknown integrated matching function pointer requested (%d)!", (
int)type);
110 return integratedKernelsMap.at(type);
115 static const std::shared_ptr<DeviceIntegerCODEC>
nullCodec;
static const std::map< COMPRESSION_TYPE, std::shared_ptr< DeviceIntegerCODEC > > codecInstancesMap
static MatchIntegratedFunPtr getMatchingFunPtr(COMPRESSION_TYPE type)
static const std::vector< std::string > allCompressionNames
This is the top-level namespace of the project.
const COMPRESSION_TYPE DEFAULT_COMPRESSION_TYPE
static const std::vector< COMPRESSION_TYPE > allCompressionTypes
void(* MatchIntegratedFunPtr)(genie::table::inv_compr_table &, std::vector< genie::query::Query > &, thrust::device_vector< genie::matching::data_t > &, thrust::device_vector< u32 > &, int, int, thrust::device_vector< u32 > &, thrust::device_vector< u32 > &, thrust::device_vector< u32 > &)
static const std::map< COMPRESSION_TYPE, MatchIntegratedFunPtr > integratedKernelsMap
static std::shared_ptr< DeviceIntegerCODEC > getCodec(COMPRESSION_TYPE type)
static const std::shared_ptr< DeviceIntegerCODEC > nullCodec
const COMPRESSION_TYPE LIGHTWEIGHT_COMPRESSION_TYPE
Query class includes the functions for processing queries based on user's input.
static const std::map< std::string, COMPRESSION_TYPE > compressionTypesMap
static COMPRESSION_TYPE getCompressionType(const std::string &name)
const COMPRESSION_TYPE HEAVYWEIGHT_COMPRESSION_TYPE
static int log(int level, const char *fmt,...)
Record and print a message into log file.
Record run-time information.
Basic utility functions to be used in matching kernels.
static const std::map< COMPRESSION_TYPE, std::string > compressionNamesMap
const COMPRESSION_TYPE MIDDLEWEIGHT_COMPRESSION_TYPE
static std::string getCompressionName(COMPRESSION_TYPE type)