OmniSciDB  04ee39c94c
anonymous_namespace{InPlaceSort.cpp} Namespace Reference

Functions

void sort_groups_gpu (int64_t *val_buff, int32_t *idx_buff, const uint64_t entry_count, const bool desc, const uint32_t chosen_bytes, ThrustAllocator &alloc)
 
void apply_permutation_gpu (int64_t *val_buff, int32_t *idx_buff, const uint64_t entry_count, const uint32_t chosen_bytes, ThrustAllocator &alloc)
 

Function Documentation

◆ apply_permutation_gpu()

void anonymous_namespace{InPlaceSort.cpp}::apply_permutation_gpu ( int64_t *  val_buff,
int32_t *  idx_buff,
const uint64_t  entry_count,
const uint32_t  chosen_bytes,
ThrustAllocator alloc 
)

Definition at line 87 of file InPlaceSort.cpp.

References apply_permutation_on_gpu(), and CHECK.

Referenced by inplace_sort_gpu().

91  {
92 #ifdef HAVE_CUDA
93  switch (chosen_bytes) {
94  case 1:
95  case 2:
96  case 4:
97  case 8:
98  apply_permutation_on_gpu(val_buff, idx_buff, entry_count, chosen_bytes, alloc);
99  break;
100  default:
101  CHECK(false);
102  }
103 #endif
104 }
void apply_permutation_on_gpu(int64_t *val_buff, int32_t *idx_buff, const uint64_t entry_count, const uint32_t chosen_bytes, ThrustAllocator &alloc)
#define CHECK(condition)
Definition: Logger.h:187
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sort_groups_gpu()

void anonymous_namespace{InPlaceSort.cpp}::sort_groups_gpu ( int64_t *  val_buff,
int32_t *  idx_buff,
const uint64_t  entry_count,
const bool  desc,
const uint32_t  chosen_bytes,
ThrustAllocator alloc 
)

Definition at line 67 of file InPlaceSort.cpp.

References CHECK, and sort_on_gpu().

Referenced by inplace_sort_gpu().

72  {
73 #ifdef HAVE_CUDA
74  switch (chosen_bytes) {
75  case 1:
76  case 2:
77  case 4:
78  case 8:
79  sort_on_gpu(val_buff, idx_buff, entry_count, desc, chosen_bytes, alloc);
80  break;
81  default:
82  CHECK(false);
83  }
84 #endif
85 }
#define CHECK(condition)
Definition: Logger.h:187
void sort_on_gpu(int64_t *val_buff, int32_t *key_buff, const uint64_t entry_count, const bool desc, const uint32_t chosen_bytes, ThrustAllocator &alloc)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: