OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gpu_enabled Namespace Reference

Functions

template<typename... ARGS>
DEVICE auto accumulate (ARGS &&...args)
 
template<typename... ARGS>
DEVICE auto copy (ARGS &&...args)
 
template<typename... ARGS>
DEVICE void fill (ARGS &&...args)
 
template<typename... ARGS>
DEVICE void iota (ARGS &&...args)
 
template<typename... ARGS>
DEVICE auto lower_bound (ARGS &&...args)
 
template<typename... ARGS>
DEVICE void partial_sum (ARGS &&...args)
 
template<typename... ARGS>
DEVICE void reverse (ARGS &&...args)
 
template<typename... ARGS>
DEVICE void sort (ARGS &&...args)
 
template<typename... ARGS>
DEVICE void swap (ARGS &&...args)
 
template<typename... ARGS>
DEVICE auto upper_bound (ARGS &&...args)
 

Function Documentation

template<typename... ARGS>
DEVICE auto gpu_enabled::copy ( ARGS &&...  args)
template<typename... ARGS>
DEVICE void gpu_enabled::fill ( ARGS &&...  args)

Definition at line 60 of file gpu_enabled.h.

References run_benchmark_import::args.

Referenced by anonymous_namespace{WindowContext.cpp}::apply_first_value_to_partition(), quantile::detail::TDigest< RealType, IndexType >::mergeSorted(), ColSlotContext::setAllSlotsSize(), and ArrowForeignStorageBase::setNulls().

60  {
61 #ifdef __CUDACC__
62  thrust::fill(thrust::device, std::forward<ARGS>(args)...);
63 #else
64  std::fill(std::forward<ARGS>(args)...);
65 #endif
66 }
DEVICE void fill(ARGS &&...args)
Definition: gpu_enabled.h:60

+ Here is the caller graph for this function:

template<typename... ARGS>
DEVICE void gpu_enabled::iota ( ARGS &&...  args)

Definition at line 69 of file gpu_enabled.h.

References run_benchmark_import::args.

Referenced by WindowFunctionContext::compute(), find_push_down_filters(), anonymous_namespace{RelAlgOptimizer.cpp}::mark_live_columns(), Fragmenter_Namespace::SortedOrderFragmenter::sortData(), and anonymous_namespace{FromTableReordering.cpp}::traverse_join_cost_graph().

69  {
70 #ifdef __CUDACC__
71  thrust::sequence(thrust::device, std::forward<ARGS>(args)...);
72 #else
73  std::iota(std::forward<ARGS>(args)...);
74 #endif
75 }
DEVICE void iota(ARGS &&...args)
Definition: gpu_enabled.h:69

+ Here is the caller graph for this function:

template<typename... ARGS>
DEVICE auto gpu_enabled::lower_bound ( ARGS &&...  args)

Definition at line 78 of file gpu_enabled.h.

References run_benchmark_import::args.

Referenced by StringDictionary::getCompare(), anonymous_namespace{RelAlgDagBuilder.cpp}::parse_operator(), org.apache.calcite.rel.externalize.MapDRelJson::toJson(), RelRexDagVisitor::visit(), and anonymous_namespace{RelLeftDeepInnerJoin.cpp}::RebindRexInputsFromLeftDeepJoin::visitInput().

78  {
79 #ifdef __CUDACC__
80  return thrust::lower_bound(thrust::device, std::forward<ARGS>(args)...);
81 #else
82  return std::lower_bound(std::forward<ARGS>(args)...);
83 #endif
84 }
DEVICE auto lower_bound(ARGS &&...args)
Definition: gpu_enabled.h:78

+ Here is the caller graph for this function:

template<typename... ARGS>
DEVICE void gpu_enabled::partial_sum ( ARGS &&...  args)

Definition at line 87 of file gpu_enabled.h.

References run_benchmark_import::args, and inclusive_scan().

Referenced by ColumnarResults::compactAndCopyEntries(), WindowFunctionContext::fillPartitionEnd(), WindowFunctionContext::fillPartitionStart(), find_push_down_filters(), inclusive_scan(), quantile::detail::TDigest< RealType, IndexType >::quantile(), and anonymous_namespace{RelLeftDeepInnerJoin.cpp}::RebindRexInputsFromLeftDeepJoin::RebindRexInputsFromLeftDeepJoin().

87  {
88 #ifdef __CUDACC__
89  thrust::inclusive_scan(thrust::device, std::forward<ARGS>(args)...);
90 #else
91  std::partial_sum(std::forward<ARGS>(args)...);
92 #endif
93 }
void inclusive_scan(InputIterator first, InputIterator last, OutputIterator out, const size_t thread_count)
DEVICE void partial_sum(ARGS &&...args)
Definition: gpu_enabled.h:87

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename... ARGS>
DEVICE void gpu_enabled::reverse ( ARGS &&...  args)

Definition at line 96 of file gpu_enabled.h.

References run_benchmark_import::args.

Referenced by quantile::detail::Centroids< RealType, IndexType >::appendAndSortCurrent(), RelAlgExecutor::executeRelAlgQueryNoRetry(), and RaExecutionSequence::RaExecutionSequence().

96  {
97 #ifdef __CUDACC__
98  thrust::reverse(thrust::device, std::forward<ARGS>(args)...);
99 #else
100  std::reverse(std::forward<ARGS>(args)...);
101 #endif
102 }
DEVICE void reverse(ARGS &&...args)
Definition: gpu_enabled.h:96

+ Here is the caller graph for this function:

template<typename... ARGS>
DEVICE void gpu_enabled::sort ( ARGS &&...  args)

Definition at line 105 of file gpu_enabled.h.

References run_benchmark_import::args.

Referenced by anonymous_namespace{RelAlgOptimizer.cpp}::add_new_indices_for(), anonymous_namespace{RelAlgDagBuilder.cpp}::add_window_function_pre_project(), Catalog_Namespace::Catalog::addTableToMap(), quantile::detail::Centroids< RealType, IndexType >::appendAndSortCurrent(), SpeculativeTopNMap::asRows(), Catalog_Namespace::Catalog::buildMaps(), WindowFunctionContext::compute(), Parser::InsertIntoTableAsSelectStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::AddColumnStmt::execute(), RelAlgExecutor::executeRelAlgQueryNoRetry(), RelAlgExecutor::executeRelAlgQuerySingleStep(), RelAlgExecutor::executeRelAlgStep(), RelAlgExecutor::executeSort(), import_export::fill_missing_columns(), DBHandler::get_completion_hints(), anonymous_namespace{RelAlgExecutor.cpp}::get_input_desc_impl(), anonymous_namespace{RelAlgOptimizer.cpp}::get_live_ins(), Fragmenter_Namespace::InsertOrderFragmenter::getChunkMetadata(), File_Namespace::CachingFileMgr::init(), File_Namespace::FileMgr::init(), RelRexDagVisitor::make_handlers(), anonymous_namespace{RelAlgExecutionDescriptor.cpp}::merge_sort_with_input(), quantile::detail::TDigest< RealType, IndexType >::mergeBuffer(), DBHandler::parse_to_ra(), anonymous_namespace{RelAlgOptimizer.cpp}::pick_always_live_col_idx(), project_separates_sort(), anonymous_namespace{RelAlgOptimizer.cpp}::propagate_input_renumbering(), Executor::resultsUnion(), File_Namespace::FileMgr::sortAndCopyFilePagesForCompaction(), StringDictionary::sortCache(), Fragmenter_Namespace::sortIndexesImpl(), RaExecutionSequence::stepsToNextBroadcast(), ResultSet::topPermutation(), and RelAlgVisitor< std::unordered_set< int > >::visit().

105  {
106 #ifdef __CUDACC__
107  thrust::sort(thrust::device, std::forward<ARGS>(args)...);
108 #else
109  std::sort(std::forward<ARGS>(args)...);
110 #endif
111 }
DEVICE void sort(ARGS &&...args)
Definition: gpu_enabled.h:105

+ Here is the caller graph for this function:

template<typename... ARGS>
DEVICE auto gpu_enabled::upper_bound ( ARGS &&...  args)