44 :
capacity_(hashmap_buffer.GetCapacity()),
50 for (
size_t i = 0; i < value_buffers.size(); ++i) {
51 void *value_buffer_ptr = value_buffers[i].GetDataPtr();
54 static_cast<uint8_t *
>(value_buffer_ptr));
61 heap_[(*heap_top_).fetch_sub(1) - 1] = buf_index;
Definition: CPUHashBackendBufferAccessor.hpp:40
buf_index_t * heap_
Definition: CPUHashBackendBufferAccessor.hpp:77
std::vector< uint8_t * > value_buffer_ptrs_
Definition: CPUHashBackendBufferAccessor.hpp:81
void DeviceFree(buf_index_t buf_index)
Definition: CPUHashBackendBufferAccessor.hpp:60
int64_t key_dsize_
Definition: CPUHashBackendBufferAccessor.hpp:74
CPUHashBackendBufferAccessor(HashBackendBuffer &hashmap_buffer)
Must initialize from a non-const buffer to grab the heap top.
Definition: CPUHashBackendBufferAccessor.hpp:43
void * GetValuePtr(buf_index_t buf_index, int value_idx=0)
Definition: CPUHashBackendBufferAccessor.hpp:67
uint8_t * key_buffer_ptr_
Definition: CPUHashBackendBufferAccessor.hpp:80
void * GetKeyPtr(buf_index_t buf_index)
Definition: CPUHashBackendBufferAccessor.hpp:64
buf_index_t DeviceAllocate()
Definition: CPUHashBackendBufferAccessor.hpp:59
std::vector< int64_t > value_dsizes_
Definition: CPUHashBackendBufferAccessor.hpp:75
int64_t capacity_
Definition: CPUHashBackendBufferAccessor.hpp:73
std::atomic< int > * heap_top_
Definition: CPUHashBackendBufferAccessor.hpp:78
Definition: HashBackendBuffer.h:46
HeapTop & GetHeapTop()
Definition: HashBackendBuffer.cpp:99
std::vector< Tensor > GetValueBuffers() const
Return the value buffer tensors.
Definition: HashBackendBuffer.cpp:112
uint32_t buf_index_t
Definition: HashBackendBuffer.h:44
Definition: PinholeCameraIntrinsic.cpp:16
std::atomic< int > cpu
Definition: HashBackendBuffer.h:50