1HBWALLOCATOR(3)                  HBWALLOCATOR                  HBWALLOCATOR(3)
2
3
4

NAME

6       hbw::allocator<T>  - The C++ allocator compatible with the C++ standard
7       library allocator concepts
8       Note: This is EXEPRIMENTAL API. The functionality and the  header  file
9       itself  can  be changed (including non-backward compatible changes), or
10       remove.
11

SYNOPSIS

13       #include <hbw_allocator.h>
14
15       Link with -lmemkind
16
17       hbw::allocator()
18       template <class U>hbw::allocator<T>::allocator(const hbw::allocator<U>&)
19       hbw::allocator<T>::~allocator()
20       hbw::allocator<T>::pointer hbw::allocator<T>::address(hbw::allocator<T>::reference x)
21       hbw::allocator<T>::const_pointer hbw::allocator<T>::address(hbw::allocator<T>::const_reference x)
22       hbw::allocator<T>::pointer hbw::allocator<T>::allocate(hbw::allocator<T>::size_type n, const void * = 0)
23       void hbw::allocator<T>::deallocate(hbw::allocator<T>::pointer p, hbw::allocator<T>::size_type n)
24       hbw::allocator<T>::size_type hbw::allocator<T>::max_size()
25       void hbw::allocator<T>::construct(hbw::allocator<T>::pointer p, const hbw::allocator<T>::value_type& val)
26       void hbw::allocator<T>::destroy(hbw::allocator<T>::pointer p)
27

DESCRIPTION

29       The hbw::allocator<T> is intended to be used  with  STL  containers  to
30       allocate high bandwidth memory. Memory management is based on hbwmalloc
31       (memkind library), enabling users to gain performance in  multithreaded
32       applications.  Refer  hbwmalloc(3)  and  memkind(3)  man  page for more
33       details.
34
35       All public member types and functions corresponds to  standard  library
36       allocator concepts and definitions. The current implementation supports
37       C++03 standard.
38
39       Template arguments:
40       T is an object type aliased by value_type.
41       U is an object type.
42
43       Note:
44       hbw::allocator<T>::pointer     hbw::allocator<T>::allocate(hbw::alloca‐
45       tor<T>::size_type  n, const void * = 0) allocates high bandwidth memory
46       using hbw_malloc().  Throw std::bad_alloc when:
47            n = 0,
48            n > max_size(),
49            or there is not enough memory to satisfy the request.
50
51
52       void    hbw::allocator<T>::deallocate(hbw::allocator<T>::pointer     p,
53       hbw::allocator<T>::size_type  n)  deallocates  memory  associated  with
54       pointer returned by allocate() using hbw_free().
55
56       To find out more about hbw_malloc() and  hbw_free()  read  hbwmalloc(3)
57       man page.
58
59
60

ERRORS

62       The same as described in ERRORS section of hbwmalloc(3) man page.
63

NOTES

65       The  hbw::allocator<T>  behavior  depends  on hbwmalloc heap management
66       policy. To get and set  the  policy  please  use  hbw_get_policy()  and
67       hbw_set_policy() respectively.
68
70       Copyright (C) 2015 - 2016 Intel Corporation. All rights reserved.
71

SEE ALSO

73       hbwmalloc(3), numa(3), numactl(8), memkind(3)
74
75
76
77Intel Corporation                 2015-11-02                   HBWALLOCATOR(3)
Impressum