Template Class CustomMemAllocator

Nested Relationships

Nested Types

Class Documentation

template<typename AllocatorType>
class CustomMemAllocator

Marshals a set of allocation/deallocation functions as NVCVResourceAllocator

A CustomMemAllocator is passed as a constructor argument to CustomAllocator.

Note

This class should not be used directly. Use one of the following typedefs:

  • CustomHostMemAllocator

  • CustomHostPinnedMemAllocator

  • CustomCudaMemAllocator

Template Parameters:

AllocatorType – the type of the allocator (one of: HostMemAllocator, HostPinnedMemAllocator, CudaMemAllocator)