Apache Arrow (C++)
A columnar in-memory analytics layer designed to accelerate big data.
Public Member Functions | List of all members
arrow::gpu::CudaHostBuffer Class Reference

Device-accessible CPU memory created using cudaHostAlloc. More...

#include <arrow/gpu/cuda_memory.h>

Inheritance diagram for arrow::gpu::CudaHostBuffer:
arrow::MutableBuffer arrow::Buffer

Public Member Functions

 ~CudaHostBuffer ()
 
- Public Member Functions inherited from arrow::MutableBuffer
 MutableBuffer (uint8_t *data, const int64_t size)
 
 MutableBuffer (const std::shared_ptr< Buffer > &parent, const int64_t offset, const int64_t size)
 
- Public Member Functions inherited from arrow::Buffer
 Buffer (const uint8_t *data, int64_t size)
 Construct from buffer and size without copying memory. More...
 
 Buffer (const std::string &data)
 Construct from std::string without copying memory. More...
 
virtual ~Buffer ()=default
 
 Buffer (const std::shared_ptr< Buffer > &parent, const int64_t offset, const int64_t size)
 An offset into data that is owned by another buffer, but we want to be able to retain a valid pointer to it even after other shared_ptr's to the parent buffer have been destroyed. More...
 
bool is_mutable () const
 
bool Equals (const Buffer &other, int64_t nbytes) const
 Return true if both buffers are the same size and contain the same bytes up to the number of compared bytes. More...
 
bool Equals (const Buffer &other) const
 Return true if both buffers are the same size and contain the same bytes. More...
 
Status Copy (const int64_t start, const int64_t nbytes, MemoryPool *pool, std::shared_ptr< Buffer > *out) const
 Copy a section of the buffer into a new Buffer. More...
 
Status Copy (const int64_t start, const int64_t nbytes, std::shared_ptr< Buffer > *out) const
 Copy a section of the buffer using the default memory pool into a new Buffer. More...
 
int64_t capacity () const
 
const uint8_t * data () const
 
uint8_t * mutable_data ()
 
int64_t size () const
 
std::shared_ptr< Bufferparent () const
 

Additional Inherited Members

- Protected Member Functions inherited from arrow::MutableBuffer
 MutableBuffer ()
 
- Protected Attributes inherited from arrow::Buffer
bool is_mutable_
 
const uint8_t * data_
 
uint8_t * mutable_data_
 
int64_t size_
 
int64_t capacity_
 
std::shared_ptr< Bufferparent_
 

Detailed Description

Device-accessible CPU memory created using cudaHostAlloc.

Constructor & Destructor Documentation

◆ ~CudaHostBuffer()

arrow::gpu::CudaHostBuffer::~CudaHostBuffer ( )

The documentation for this class was generated from the following file: