OmniSciDB
a5dc49c757
|
Functions | |
template<class K , class V , class I > | |
std::vector< uint32_t > | do_radix_sort (const ExecutorDeviceType device_type, const int device_id, ThrustAllocator &thrust_allocator, const int8_t *groupby_buffer, V dev_oe_col_buffer_begin, V dev_oe_col_buffer_end, I dev_idx_buff_begin, const size_t dev_idx_buff_size, const PodOrderEntry &oe, const GroupByBufferLayoutInfo &layout, const size_t top_n) |
void | add_nulls (std::vector< uint32_t > &idx_buff, const std::vector< uint32_t > &null_idx_buff, const PodOrderEntry &oe) |
template<typename T > | |
thrust::device_ptr< T > | get_device_copy_ptr (const thrust::host_vector< T > &host_vec, ThrustAllocator &thrust_allocator) |
template<class K > | |
std::vector< uint32_t > | baseline_sort_fp (const ExecutorDeviceType device_type, const int device_id, Data_Namespace::DataMgr *data_mgr, const int8_t *groupby_buffer, const thrust::host_vector< int64_t > &oe_col_buffer, const PodOrderEntry &oe, const GroupByBufferLayoutInfo &layout, const size_t top_n, const size_t start, const size_t step) |
template<class K > | |
std::vector< uint32_t > | baseline_sort_int (const ExecutorDeviceType device_type, const int device_id, Data_Namespace::DataMgr *data_mgr, const int8_t *groupby_buffer, const thrust::host_vector< int64_t > &oe_col_buffer, const PodOrderEntry &oe, const GroupByBufferLayoutInfo &layout, const size_t top_n, const size_t start, const size_t step) |
template<class K > | |
thrust::host_vector< int64_t > | collect_order_entry_column (const int8_t *groupby_buffer, const GroupByBufferLayoutInfo &layout, const size_t start, const size_t step) |
void anonymous_namespace{ResultSetSortImpl.cu}::add_nulls | ( | std::vector< uint32_t > & | idx_buff, |
const std::vector< uint32_t > & | null_idx_buff, | ||
const PodOrderEntry & | oe | ||
) |
Definition at line 97 of file ResultSetSortImpl.cu.
References PodOrderEntry::nulls_first.
Referenced by baseline_sort_fp(), and baseline_sort_int().
std::vector<uint32_t> anonymous_namespace{ResultSetSortImpl.cu}::baseline_sort_fp | ( | const ExecutorDeviceType | device_type, |
const int | device_id, | ||
Data_Namespace::DataMgr * | data_mgr, | ||
const int8_t * | groupby_buffer, | ||
const thrust::host_vector< int64_t > & | oe_col_buffer, | ||
const PodOrderEntry & | oe, | ||
const GroupByBufferLayoutInfo & | layout, | ||
const size_t | top_n, | ||
const size_t | start, | ||
const size_t | step | ||
) |
Definition at line 125 of file ResultSetSortImpl.cu.
References add_nulls(), TargetInfo::agg_kind, CHECK, CPU, GroupByBufferLayoutInfo::entry_count, get_device_copy_ptr(), GPU, PodOrderEntry::is_desc, kAVG, kDOUBLE, null_val_bit_pattern(), PodOrderEntry::nulls_first, GroupByBufferLayoutInfo::oe_target_info, GroupByBufferLayoutInfo::row_bytes, takes_float_argument(), and PodOrderEntry::tle_no.
std::vector<uint32_t> anonymous_namespace{ResultSetSortImpl.cu}::baseline_sort_int | ( | const ExecutorDeviceType | device_type, |
const int | device_id, | ||
Data_Namespace::DataMgr * | data_mgr, | ||
const int8_t * | groupby_buffer, | ||
const thrust::host_vector< int64_t > & | oe_col_buffer, | ||
const PodOrderEntry & | oe, | ||
const GroupByBufferLayoutInfo & | layout, | ||
const size_t | top_n, | ||
const size_t | start, | ||
const size_t | step | ||
) |
Definition at line 249 of file ResultSetSortImpl.cu.
References add_nulls(), CHECK, CPU, GroupByBufferLayoutInfo::entry_count, get_compact_type(), get_device_copy_ptr(), GPU, null_val_bit_pattern(), GroupByBufferLayoutInfo::oe_target_info, and GroupByBufferLayoutInfo::row_bytes.
thrust::host_vector<int64_t> anonymous_namespace{ResultSetSortImpl.cu}::collect_order_entry_column | ( | const int8_t * | groupby_buffer, |
const GroupByBufferLayoutInfo & | layout, | ||
const size_t | start, | ||
const size_t | step | ||
) |
Definition at line 316 of file ResultSetSortImpl.cu.
References GroupByBufferLayoutInfo::col_off, GroupByBufferLayoutInfo::row_bytes, and GroupByBufferLayoutInfo::target_groupby_index.
std::vector<uint32_t> anonymous_namespace{ResultSetSortImpl.cu}::do_radix_sort | ( | const ExecutorDeviceType | device_type, |
const int | device_id, | ||
ThrustAllocator & | thrust_allocator, | ||
const int8_t * | groupby_buffer, | ||
V | dev_oe_col_buffer_begin, | ||
V | dev_oe_col_buffer_end, | ||
I | dev_idx_buff_begin, | ||
const size_t | dev_idx_buff_size, | ||
const PodOrderEntry & | oe, | ||
const GroupByBufferLayoutInfo & | layout, | ||
const size_t | top_n | ||
) |
Definition at line 25 of file ResultSetSortImpl.cu.
References checkCudaErrors, getQueryEngineCudaStreamForDevice(), GPU, PodOrderEntry::is_desc, run_benchmark_import::result, and GroupByBufferLayoutInfo::row_bytes.
thrust::device_ptr<T> anonymous_namespace{ResultSetSortImpl.cu}::get_device_copy_ptr | ( | const thrust::host_vector< T > & | host_vec, |
ThrustAllocator & | thrust_allocator | ||
) |
Definition at line 108 of file ResultSetSortImpl.cu.
References align_to_int64(), ThrustAllocator::allocateScopedBuffer(), copy_to_nvidia_gpu(), ThrustAllocator::getDataMgr(), ThrustAllocator::getDeviceId(), and heavydb.dtypes::T.
Referenced by baseline_sort(), baseline_sort_fp(), and baseline_sort_int().