Celeritas 0.6.0-dev.115+3b60a5fd
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::AsyncMemoryResource< Pointer > Class Template Referencefinal

Thrust async memory resource associated with a Stream. More...

#include <Stream.hh>

Inheritance diagram for celeritas::AsyncMemoryResource< Pointer >:
Inheritance graph
[legend]

Public Types

Type aliases
using pointer = Pointer
 
using StreamT = MockStream_st *
 

Public Member Functions

 AsyncMemoryResource (StreamT stream)
 
pointer do_allocate (std::size_t bytes, std::size_t) final
 Allocate device memory.
 
void do_deallocate (pointer p, std::size_t, std::size_t) final
 Deallocate device memory.
 

Detailed Description

template<class Pointer>
class celeritas::AsyncMemoryResource< Pointer >

Thrust async memory resource associated with a Stream.

Member Function Documentation

◆ do_allocate()

template<class Pointer >
auto celeritas::AsyncMemoryResource< Pointer >::do_allocate ( std::size_t  bytes,
std::size_t   
)
finalvirtual

Allocate device memory.

Implements celeritas::MockMemoryResource< Pointer >.

◆ do_deallocate()

template<class Pointer >
void celeritas::AsyncMemoryResource< Pointer >::do_deallocate ( pointer  p,
std::size_t  ,
std::size_t   
)
finalvirtual

Deallocate device memory.

Implements celeritas::MockMemoryResource< Pointer >.


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