BlackCat_Tensors
A GPU-supported autograd and linear algebra library, designed for neural network construction
Classes | Public Member Functions | Static Public Attributes | List of all members
bc::allocators::Device_Managed< T > Struct Template Reference

#include <basic_allocators.h>

Inheritance diagram for bc::allocators::Device_Managed< T >:
Inheritance graph
[legend]
Collaboration diagram for bc::allocators::Device_Managed< T >:
Collaboration graph
[legend]

Classes

struct  rebind
 

Public Member Functions

T * allocate (bc::size_t sz)
 
- Public Member Functions inherited from bc::allocators::Allocator< T, device_tag >
template<class U >
 Allocator (const Allocator< U, device_tag > &)
 
 Allocator ()=default
 
T * allocate (std::size_t sz) const
 
void deallocate (T *data_ptr, std::size_t size) const
 
- Public Member Functions inherited from bc::allocators::Basic_Allocator_Base< T, device_tag >
bool operator== (const Basic_Allocator_Base< U, device_tag > &) const
 
bool operator!= (const Basic_Allocator_Base< U, device_tag > &) const
 

Static Public Attributes

static constexpr bool managed_memory = true
 

Additional Inherited Members

- Public Types inherited from bc::allocators::Basic_Allocator_Base< T, device_tag >
using system_tag = device_tag
 
using value_type = T
 
using pointer = value_type *
 
using const_pointer = value_type *
 
using size_type = std::size_t
 
using reference = value_type &
 
using const_reference = const value_type &
 
using propagate_on_container_copy_assignment = std::false_type
 
using propagate_on_container_move_assignment = std::false_type
 
using propagate_on_container_swap = std::false_type
 
using is_always_equal = std::true_type
 

Member Function Documentation

◆ allocate()

template<class T >
T* bc::allocators::Device_Managed< T >::allocate ( bc::size_t  sz)
inline

Member Data Documentation

◆ managed_memory

template<class T >
constexpr bool bc::allocators::Device_Managed< T >::managed_memory = true
static

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