QUDA  1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
thrust_allocator Class Reference

Public Types

typedef char value_type
 

Public Member Functions

 thrust_allocator ()
 
 ~thrust_allocator ()
 
char * allocate (std::ptrdiff_t num_bytes)
 
void deallocate (char *ptr, size_t n)
 

Detailed Description

Allocator helper class which allows us to redirect thrust temporary alocations to use QUDA's pool memory

Definition at line 27 of file thrust_helper.cuh.

Member Typedef Documentation

◆ value_type

Definition at line 31 of file thrust_helper.cuh.

Constructor & Destructor Documentation

◆ thrust_allocator()

thrust_allocator::thrust_allocator ( )
inline

Definition at line 33 of file thrust_helper.cuh.

◆ ~thrust_allocator()

thrust_allocator::~thrust_allocator ( )
inline

Definition at line 34 of file thrust_helper.cuh.

Member Function Documentation

◆ allocate()

char* thrust_allocator::allocate ( std::ptrdiff_t  num_bytes)
inline

Definition at line 36 of file thrust_helper.cuh.

References pool_device_malloc.

◆ deallocate()

void thrust_allocator::deallocate ( char *  ptr,
size_t  n 
)
inline

Definition at line 37 of file thrust_helper.cuh.

References pool_device_free.


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