NVIDIA IndeX API nvidia_logo_transpbg.gif Up
nv::index::ICuda_memory_manager Class Referenceabstract

Interface class for allocating NVIDIA IndeX library-side buffers for use also on the application-side. More...

#include <imemory_manager.h>

Inherits mi::base::Interface_declare< 0x636c6df4, ... >.

Public Member Functions

virtual ICuda_memory_bufferrequest_linear_device_memory (mi::Size elements, mi::Size type_size) const =0
 Requesting and allocating a linear memory on a CUDA device. More...
 
template<typename T>
ICuda_memory_bufferrequest_linear_device_memory (mi::Size elements) const
 Convenience function for requesting and allocating a linear memory on a CUDA device. More...
 

Detailed Description

Interface class for allocating NVIDIA IndeX library-side buffers for use also on the application-side.

Member Function Documentation

 request_linear_device_memory() [1/2]

template<typename T>
ICuda_memory_buffer * nv::index::ICuda_memory_manager::request_linear_device_memory ( mi::Size  elements) const
inline

Convenience function for requesting and allocating a linear memory on a CUDA device.

The template parameter denotes the type used for creating a linear CUDA buffer.

Parameters
[in]elementsThe number of elements of a given type (type size) to be hosted in allocated device memory.
Returns
Returns the requested CUDA device buffer encapsulated in an instance of ICuda_memory_buffer.

 request_linear_device_memory() [2/2]

virtual ICuda_memory_buffer * nv::index::ICuda_memory_manager::request_linear_device_memory ( mi::Size  elements,
mi::Size  type_size 
) const
pure virtual

Requesting and allocating a linear memory on a CUDA device.

Parameters
[in]elementsThe number of elements of a given type (type size) to be hosted in allocated device memory.
[in]type_sizeThe size of type of each of the elements that shall be stored in the allocated device memory.
Returns
Returns the requested CUDA device buffer encapsulated in an instance of ICuda_memory_buffer.

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