Class GpuReductionHelperJIT

class GpuReductionHelperJIT : public ResultSetReductionJIT

This is a helper class for performing GPU reduction code. It uses the same functions that ResultSetReductionJIT generates so that it can be reused and help the reduction procedure within GPU.

Public Functions

GpuReductionHelperJIT(const QueryMemoryDescriptor &query_mem_desc, const std::vector<TargetInfo> &targets, const std::vector<int64_t> &target_init_vals, const size_t executor_id)
ReductionCode codegen() const

generates code for perfect hash group by reduction: the following functions are internally created: isEmpty, reduceOneEntryNoCollision (reduce for perfect hash), reduceOneEntryNoCollissionsIdx(reduce one slot for perfect hash), and reduceLoop (the outer loop).

Private Members

const QueryMemoryDescriptor &query_mem_desc_