Home
last modified time | relevance | path

Searched refs:cache_aligned_allocator (Results 1 – 25 of 25) sorted by relevance

/oneTBB/include/oneapi/tbb/
H A Dcache_aligned_allocator.h41 class cache_aligned_allocator {
49 cache_aligned_allocator() = default;
50 template<typename U> cache_aligned_allocator(const cache_aligned_allocator<U>&) noexcept {} in cache_aligned_allocator() function
75 using other = cache_aligned_allocator<U>;
88 class cache_aligned_allocator<void> {
94 using other = cache_aligned_allocator<U>;
100 bool operator==(const cache_aligned_allocator<T>&, const cache_aligned_allocator<U>&) noexcept { re…
104 bool operator!=(const cache_aligned_allocator<T>&, const cache_aligned_allocator<U>&) noexcept { re…
181 using detail::d1::cache_aligned_allocator;
H A Dcombinable.h34 using my_alloc = typename tbb::cache_aligned_allocator<T>;
H A Dconcurrent_queue.h52 template <typename T, typename Allocator = tbb::cache_aligned_allocator<T>>
287 template <typename It, typename Alloc = tbb::cache_aligned_allocator<iterator_value_t<It>>,
321 template <typename T, typename Allocator = tbb::cache_aligned_allocator<T>>
681 template <typename It, typename Alloc = tbb::cache_aligned_allocator<iterator_value_t<It>>>
H A Dconcurrent_priority_queue.h40 template <typename T, typename Compare = std::less<T>, typename Allocator = cache_aligned_allocator
447 typename Alloc = tbb::cache_aligned_allocator<iterator_value_t<It>>,
462 typename Alloc = tbb::cache_aligned_allocator<T>,
H A Dflow_graph.h762 , public function_input< Input, Output, Policy, cache_aligned_allocator<Input> > in __TBB_requires()
765 typedef cache_aligned_allocator<Input> internals_allocator; in __TBB_requires()
858 cache_aligned_allocator<Input> in __TBB_requires()
861 typedef cache_aligned_allocator<Input> internals_allocator; in __TBB_requires()
1149 , public reservable_item_buffer< T, cache_aligned_allocator<T> >
1152 typedef cache_aligned_allocator<T> internals_allocator;
2876 …Input, typename base_type::output_ports_type, Policy, cache_aligned_allocator<Input>> mfn_input_ty… in __TBB_requires()
H A Dconcurrent_vector.h226 template <typename T, typename Allocator = tbb::cache_aligned_allocator<T>>
1048 template <typename It, typename Alloc = tbb::cache_aligned_allocator<iterator_value_t<It>>,
H A Denumerable_thread_specific.h759 template <typename T, typename Allocator=cache_aligned_allocator<T>,
/oneTBB/test/conformance/
H A Dconformance_allocators.cpp31 TestAllocator<oneapi::tbb::cache_aligned_allocator<void>>(Concept);
35 using Allocator = oneapi::tbb::cache_aligned_allocator<int>;
43 TestAllocator<oneapi::tbb::cache_aligned_allocator<void>>(Comparison);
51 TestAllocator<oneapi::tbb::cache_aligned_allocator<void>>(Exceptions);
59 TestAllocator<oneapi::tbb::cache_aligned_allocator<void>>(ThreadSafety);
H A Dconformance_concurrent_vector.cpp1246 TVector v6(v5, oneapi::tbb::cache_aligned_allocator<ComplexType>()); in TestDeductionGuides()
1247 …ert(std::is_same<decltype(v6), TVector<ComplexType, oneapi::tbb::cache_aligned_allocator<ComplexTy… in TestDeductionGuides()
1254 TVector v8(std::move(v5), oneapi::tbb::cache_aligned_allocator<ComplexType>()); in TestDeductionGuides()
1255 …ert(std::is_same<decltype(v8), TVector<ComplexType, oneapi::tbb::cache_aligned_allocator<ComplexTy… in TestDeductionGuides()
1265 oneapi::tbb::cache_aligned_allocator<int>>::value, in test_member_types()
1269 using test_allocator_type = oneapi::tbb::cache_aligned_allocator<int>; in test_member_types()
H A Dconformance_concurrent_queue.cpp33 using test_allocator = StaticSharedCountingAllocator<oneapi::tbb::cache_aligned_allocator<T>>;
258 template<typename T, typename A = oneapi::tbb::cache_aligned_allocator<T>>
924 …using allocator_t = StaticSharedCountingAllocator<oneapi::tbb::cache_aligned_allocator<std::size_t… in TestExceptions()
925 …using allocator_char_t = StaticSharedCountingAllocator<oneapi::tbb::cache_aligned_allocator<char>>; in TestExceptions()
1074 …d::is_same<typename container_type::allocator_type, oneapi::tbb::cache_aligned_allocator<int>>::va… in test_member_types()
1208 class allocator: public oneapi::tbb::cache_aligned_allocator<T> {
H A Dconformance_enumerable_thread_specific.cpp1022 …me<typename default_container_type::allocator_type, oneapi::tbb::cache_aligned_allocator<int>>::va… in TestMemberTypes()
1196 TestInstantiation<oneapi::tbb::cache_aligned_allocator>("oneapi::tbb::cache_aligned_allocator");
1205 …run_assignment_and_copy_constructor_tests<oneapi::tbb::cache_aligned_allocator>("oneapi::tbb::cach…
1245 … run_parallel_tests<oneapi::tbb::cache_aligned_allocator>("oneapi::tbb::cache_aligned_allocator");
/oneTBB/doc/main/tbb_userguide/
H A DMemory_Allocation.rst10 ``cache_aligned_allocator<T>``, address critical issues in parallel
35 Use the ``cache_aligned_allocator<T>`` template to always allocate on
37 ``cache_aligned_allocator`` are guaranteed to not have false sharing.
38 However, if an object is allocated by ``cache_aligned_allocator`` and
44 that uses ``cache_aligned_allocator``\ for allocation:
50 std::vector<int,cache_aligned_allocator<int> >;
54 The functionality of ``cache_aligned_allocator<T>`` comes at some
57 ``cache_aligned_allocator<T>`` only if false sharing is likely to be
H A DWhich_Dynamic_Libraries_to_Use.rst14 The templates ``tbb_allocator<T>`` and ``cache_aligned_allocator<T>``
37 * - \ ``tbb_allocator<T>`` \ ``cache_aligned_allocator<T>``
/oneTBB/test/tbb/
H A Dtest_allocators.cpp76 TestAllocator<tbb::cache_aligned_allocator<void>>(Broken);
84 TestAllocatorWithSTL<tbb::cache_aligned_allocator<void>>();
H A Dtest_task.cpp180 …std::vector<task_type, tbb::cache_aligned_allocator<task_type>> vector_test_task(threads_num, task…
222 …std::vector<task_type, tbb::cache_aligned_allocator<task_type>> vector_test_task(task_threads_num,…
267 …std::vector<task_type, tbb::cache_aligned_allocator<task_type>> vector_test_task(threads_num, task…
303 using task_pool_type = std::vector<SpawningTask, tbb::cache_aligned_allocator<SpawningTask>>;
396 std::vector<suspended_task, tbb::cache_aligned_allocator<suspended_task>> test_task; in __anon509d20bd0b02()
418 using task_pool_type = std::vector<bypass_task, tbb::cache_aligned_allocator<bypass_task>>;
477 std::vector<bypass_task, tbb::cache_aligned_allocator<bypass_task>> test_task_pool;
534 std::vector<task_type, tbb::cache_aligned_allocator<task_type>> test_tasks;
599 std::vector<task_type, tbb::cache_aligned_allocator<task_type>> test_tasks;
685 std::vector<task_type, tbb::cache_aligned_allocator<task_type>> test_tasks;
H A Dtest_hw_concurrency.cpp75 tbb::cache_aligned_allocator<std::size_t> caa;
H A Dtest_tbb_header.cpp181 TestTypeDefinitionPresence( cache_aligned_allocator<int> ); in DefinitionPresence()
H A Dtest_enumerable_thread_specific.cpp419 TestConstructorWithBigType<tbb::cache_aligned_allocator>("tbb::cache_aligned_allocator");
H A Dtest_resumable_tasks.cpp269 …tbb::enumerable_thread_specific<int, tbb::cache_aligned_allocator<int>, tbb::ets_suspend_aware> et… in TestSuspendResume()
/oneTBB/src/tbb/
H A Dprivate_server.cpp174 tbb::cache_aligned_allocator<private_server>().deallocate( this, 1 ); in remove_server_ref()
339 my_thread_array = tbb::cache_aligned_allocator<padded_private_worker>().allocate( my_n_thread ); in private_server()
351 … tbb::cache_aligned_allocator<padded_private_worker>().deallocate( my_thread_array, my_n_thread ); in ~private_server()
429 return new( tbb::cache_aligned_allocator<private_server>().allocate(1) ) private_server(client); in make_private_server()
H A Dparallel_pipeline.cpp171 cache_aligned_allocator<task_info>().deallocate(array,array_size); in ~input_buffer()
255 task_info* new_array = cache_aligned_allocator<task_info>().allocate(new_size); in grow()
265 cache_aligned_allocator<task_info>().deallocate(old_array,old_size); in grow()
H A Dtask_stream.h47 typedef std::deque< T, cache_aligned_allocator<T> > queue_base_t; in alignas()
/oneTBB/python/rml/
H A Dipc_server.cpp455 tbb::cache_aligned_allocator<ipc_server>().deallocate( this, 1 ); in remove_server_ref()
843 my_thread_array = tbb::cache_aligned_allocator<padded_ipc_worker>().allocate( my_n_thread ); in ipc_server()
850 my_waker = tbb::cache_aligned_allocator<ipc_waker>().allocate(1); in ipc_server()
853 my_stopper = tbb::cache_aligned_allocator<ipc_stopper>().allocate(1); in ipc_server()
872 tbb::cache_aligned_allocator<padded_ipc_worker>().deallocate( my_thread_array, my_n_thread ); in ~ipc_server()
876 tbb::cache_aligned_allocator<ipc_waker>().deallocate( my_waker, 1 ); in ~ipc_server()
880 tbb::cache_aligned_allocator<ipc_stopper>().deallocate( my_stopper, 1 ); in ~ipc_server()
1117 server = new( tbb::cache_aligned_allocator<ipc_server>().allocate(1) ) ipc_server(client); in __TBB_make_rml_server()
/oneTBB/include/oneapi/tbb/detail/
H A D_flow_graph_item_buffer_impl.h34 template <typename T, typename A=cache_aligned_allocator<T> >
244 template<typename T, typename A=cache_aligned_allocator<T> >
H A D_flow_graph_tagged_buffer_impl.h46 … typename Allocator=tbb::cache_aligned_allocator< typename aligned_pair<ValueType, void *>::type >