File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,5 @@ Containers
9
9
10
10
${repo_docs_api_path}/* host__vector*
11
11
${repo_docs_api_path}/* device__vector*
12
+ ${repo_docs_api_path}/* universal_vector*
13
+ ${repo_docs_api_path}/* universal_host_pinned_vector*
Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ Allocators
6
6
- :cpp:class: `thrust::device_allocator <thrust::device_allocator> `
7
7
- :cpp:class: `thrust::device_malloc_allocator <thrust::device_malloc_allocator> `
8
8
- :cpp:class: `thrust::device_new_allocator <thrust::device_new_allocator> `
9
+ - :cpp:class: `thrust::universal_allocator <thrust::universal_allocator> `
10
+ - :cpp:class: `thrust::universal_host_pinned_allocator <thrust::universal_host_pinned_allocator> `
9
11
- :cpp:class: `thrust::mr::allocator <thrust::mr::allocator> `
10
12
- :cpp:class: `thrust::mr::stateless_resource_allocator <thrust::mr::stateless_resource_allocator> `
11
- - :cpp:class: `thrust::mr::stateless_resource_allocator <thrust::mr::stateless_resource_allocator> `
12
13
13
14
.. toctree ::
14
15
:glob:
Original file line number Diff line number Diff line change @@ -50,6 +50,13 @@ THRUST_NAMESPACE_BEGIN
50
50
*/
51
51
using thrust::system::__THRUST_DEVICE_SYSTEM_NAMESPACE::universal_allocator;
52
52
53
+ /* ! \brief An allocator which creates new elements in memory accessible by both hosts and devices. Uses pinned memory
54
+ * when the system supports it.
55
+ *
56
+ * \see https://en.cppreference.com/w/cpp/named_req/Allocator
57
+ */
58
+ using thrust::system::__THRUST_DEVICE_SYSTEM_NAMESPACE::universal_host_pinned_allocator;
59
+
53
60
/* ! \p universal_ptr stores a pointer to an object allocated in memory accessible
54
61
* to both hosts and devices.
55
62
*
You can’t perform that action at this time.
0 commit comments