OmniSciDB  5ade3759e0
BufferCompaction.h File Reference
#include <cstdint>
#include "../Shared/funcannotations.h"
#include <algorithm>
+ Include dependency graph for BufferCompaction.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

unsigned compact_byte_width (unsigned qw, unsigned low_bound)
 
template<typename T >
FORCE_INLINE HOST DEVICEalign_to_int64 (T addr)
 

Variables

constexpr int8_t MAX_BYTE_WIDTH_SUPPORTED = 8
 

Function Documentation

◆ align_to_int64()

template<typename T >
FORCE_INLINE HOST DEVICE T align_to_int64 ( addr)

Definition at line 44 of file BufferCompaction.h.

Referenced by advance_to_next_columnar_key_buff(), advance_to_next_columnar_target_buff(), ColSlotContext::alignPaddedSlots(), CountDistinctDescriptor::bitmapPaddedSizeBytes(), compact_init_vals(), anonymous_namespace{QueryMemoryInitializer.cpp}::compact_projection_buffer_for_cpu_columnar(), copy_projection_buffer_from_gpu_columnar(), create_dev_group_by_buffers(), get_byteoff_of_slot(), get_matching_group_value(), get_row_bytes(), get_slot_off_quad(), ColSlotContext::getAlignedPaddedSizeForRange(), QueryMemoryDescriptor::getBufferSizeBytes(), QueryMemoryDescriptor::getColOffInBytes(), ColSlotContext::getColOnlyOffInBytes(), QueryMemoryDescriptor::getNextColOffInBytes(), ResultSet::getOneColRow(), QueryMemoryDescriptor::getPrependedGroupBufferSizeInBytes(), QueryMemoryDescriptor::getPrependedGroupColOffInBytes(), QueryMemoryDescriptor::getRowSize(), ColSlotContext::getTotalBytesOfColumnarBuffers(), QueryMemoryInitializer::initColumnarGroups(), ResultSetStorage::initializeRowWise(), GroupByAndAggregate::initQueryMemoryDescriptor(), inplace_sort_gpu(), QueryExecutionContext::launchCpuCode(), ResultSetReductionJIT::reduceOneEntryNoCollisions(), ResultSetStorage::reduceOneEntryNoCollisionsRowWise(), and ResultSetStorage::rewriteAggregateBufferOffsets().

44  {
45  addr += sizeof(int64_t) - 1;
46  return (T)(((uint64_t)addr >> 3) << 3);
47 }
+ Here is the caller graph for this function:

◆ compact_byte_width()

unsigned compact_byte_width ( unsigned  qw,
unsigned  low_bound 
)
inline

Definition at line 38 of file BufferCompaction.h.

Referenced by get_agg_initial_val().

38  {
39  return std::max(qw, low_bound);
40 }
+ Here is the caller graph for this function:

Variable Documentation

◆ MAX_BYTE_WIDTH_SUPPORTED

constexpr int8_t MAX_BYTE_WIDTH_SUPPORTED = 8