OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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, const int device_id)
 
void apply_permutation_gpu (int64_t *val_buff, int32_t *idx_buff, const uint64_t entry_count, const uint32_t chosen_bytes, ThrustAllocator &alloc, const int device_id)
 

Function Documentation

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,
const int  device_id 
)

Definition at line 88 of file InPlaceSort.cpp.

References apply_permutation_on_gpu(), and CHECK.

Referenced by inplace_sort_gpu().

93  {
94 #ifdef HAVE_CUDA
95  switch (chosen_bytes) {
96  case 1:
97  case 2:
98  case 4:
99  case 8:
101  val_buff, idx_buff, entry_count, chosen_bytes, alloc, device_id);
102  break;
103  default:
104  CHECK(false);
105  }
106 #endif
107 }
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, const int device_id)
#define CHECK(condition)
Definition: Logger.h:291

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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,
const int  device_id 
)

Definition at line 67 of file InPlaceSort.cpp.

References CHECK, and sort_on_gpu().

Referenced by inplace_sort_gpu().

73  {
74 #ifdef HAVE_CUDA
75  switch (chosen_bytes) {
76  case 1:
77  case 2:
78  case 4:
79  case 8:
80  sort_on_gpu(val_buff, idx_buff, entry_count, desc, chosen_bytes, alloc, device_id);
81  break;
82  default:
83  CHECK(false);
84  }
85 #endif
86 }
void sort_on_gpu(int64_t *val_buff, int32_t *idx_buff, const uint64_t entry_count, const bool desc, const uint32_t chosen_bytes, ThrustAllocator &alloc, const int device_id)
#define CHECK(condition)
Definition: Logger.h:291

+ Here is the call graph for this function:

+ Here is the caller graph for this function: