10 #ifndef BC_ALLOCATOR_DEVICE_H_ 11 #define BC_ALLOCATOR_DEVICE_H_ 18 namespace allocators {
20 template<
class ValueType,
class SystemTag>
51 template<
class ValueType,
class SystemTag>
92 unsigned memsz =
sizeof(T) * sz;
108 static constexpr
bool managed_memory =
true;
116 unsigned memsz =
sizeof(T) * sz;
const auto t() const
Definition: expression_operations.h:93
Allocator(const Allocator< U, host_tag > &)
Definition: basic_allocators.h:62
T * allocate(int size)
Definition: basic_allocators.h:65
Allocator(const Allocator< U, device_tag > &)
Definition: basic_allocators.h:86
std::false_type propagate_on_container_swap
Definition: basic_allocators.h:37
std::false_type propagate_on_container_copy_assignment
Definition: basic_allocators.h:35
value_type * pointer
Definition: basic_allocators.h:25
T value_type
Definition: basic_allocators.h:24
void deallocate(T *t, bc::size_t size)
Definition: basic_allocators.h:69
bool operator!=(const Basic_Allocator_Base< U, SystemTag > &) const
Definition: basic_allocators.h:46
int size_t
Definition: common.h:283
#define BC_CUDA_ASSERT(...)
Definition: common.h:194
std::true_type is_always_equal
Definition: basic_allocators.h:38
Definition: allocators.h:20
value_type & reference
Definition: basic_allocators.h:33
T * allocate(bc::size_t sz)
Definition: basic_allocators.h:113
Definition: basic_allocators.h:111
void deallocate(T *data_ptr, std::size_t size) const
Definition: basic_allocators.h:98
T * allocate(std::size_t sz) const
Definition: basic_allocators.h:89
value_type * const_pointer
Definition: basic_allocators.h:26
std::size_t size_type
Definition: basic_allocators.h:28
bool operator==(const Basic_Allocator_Base< U, SystemTag > &) const
Definition: basic_allocators.h:41
const value_type & const_reference
Definition: basic_allocators.h:34
Definition: basic_allocators.h:21
The Evaluator determines if an expression needs to be greedily optimized.
Definition: algorithms.h:22
Definition: basic_allocators.h:104
std::false_type propagate_on_container_move_assignment
Definition: basic_allocators.h:36