Home
last modified time | relevance | path

Searched refs:reduction (Results 1 – 9 of 9) sorted by relevance

/oneTBB/test/common/
H A Dparallel_reduce_common.h43 ResultType reduce_invoker(const Range& range, const Func& func, const Reduction& reduction, Partiti… in reduce_invoker() argument
44 return tbb::parallel_reduce( range, ResultType(), func, reduction, partiotioner ); in reduce_invoker()
48 ResultType reduce_invoker(const Range& range, const Func& func, const Reduction& reduction, utils_d… in reduce_invoker() argument
49 return tbb::parallel_reduce( range, ResultType(), func, reduction ); in reduce_invoker()
64 … const Reduction& reduction, const Partitioner& partiotioner) { in deterministic_reduce_invoker() argument
65 return tbb::parallel_deterministic_reduce( range, ResultType(), func, reduction, partiotioner ); in deterministic_reduce_invoker()
70 … const Reduction& reduction, const utils_default_partitioner&) { in deterministic_reduce_invoker() argument
71 return tbb::parallel_deterministic_reduce( range, ResultType(), func, reduction ); in deterministic_reduce_invoker()
H A Dtest_invoke.h52 Value reduction(const Value& idx) const { in reduction() function
/oneTBB/test/conformance/
H A Dconformance_parallel_reduce.cpp138 void test_preduce_invoke_basic(const Body& body, const Reduction& reduction) { in test_preduce_invoke_basic() argument
145 CHECK(result == oneapi::tbb::parallel_reduce(range, identity, body, reduction).get()); in test_preduce_invoke_basic()
146 …CHECK(result == oneapi::tbb::parallel_reduce(range, identity, body, reduction, oneapi::tbb::simple… in test_preduce_invoke_basic()
147 …CHECK(result == oneapi::tbb::parallel_reduce(range, identity, body, reduction, oneapi::tbb::auto_p… in test_preduce_invoke_basic()
148 …CHECK(result == oneapi::tbb::parallel_reduce(range, identity, body, reduction, oneapi::tbb::static… in test_preduce_invoke_basic()
150 CHECK(result == oneapi::tbb::parallel_reduce(range, identity, body, reduction, aff).get()); in test_preduce_invoke_basic()
152 …CHECK(result == oneapi::tbb::parallel_deterministic_reduce(range, identity, body, reduction).get()… in test_preduce_invoke_basic()
153 …CHECK(result == oneapi::tbb::parallel_deterministic_reduce(range, identity, body, reduction, oneap… in test_preduce_invoke_basic()
154 …CHECK(result == oneapi::tbb::parallel_deterministic_reduce(range, identity, body, reduction, oneap… in test_preduce_invoke_basic()
171 …test_preduce_invoke_basic(&test_invoke::SmartRange<test_invoke::SmartValue>::reduction, &test_invo…
[all …]
/oneTBB/doc/main/tbb_userguide/design_patterns/
H A DReduction.rst13 Perform an associative reduction operation across a data set.
50 - Are instances of the reduction type expensive to construct and
57 construct. It works even if the reduction operation is not
66 deterministic result is required, use recursive reduction and
90 // Index range for reduction
106 elementwise action to be performed before the reduction,
156 // Use serial reduction
159 // Do parallel divide-and-conquer reduction
181 builds a deterministic reduction graph. With it, the
192 // Index range for reduction
[all …]
H A DElementwise.rst52 If the pattern is followed by a reduction on the same data, consider
53 doing the element-wise operation as part of the reduction, so that
/oneTBB/include/oneapi/tbb/
H A Dparallel_reduce.h382 , my_reduction(reduction) in lambda_reduce_body()
514 lambda_reduce_body<Range,Value,RealBody,Reduction> body(identity, real_body, reduction); in __TBB_requires()
527 lambda_reduce_body<Range,Value,RealBody,Reduction> body(identity, real_body, reduction); in __TBB_requires()
540 lambda_reduce_body<Range,Value,RealBody,Reduction> body(identity, real_body, reduction); in __TBB_requires()
553 lambda_reduce_body<Range,Value,RealBody,Reduction> body(identity, real_body, reduction); in __TBB_requires()
566 lambda_reduce_body<Range,Value,RealBody,Reduction> body(identity, real_body, reduction); in __TBB_requires()
579 lambda_reduce_body<Range,Value,RealBody,Reduction> body(identity, real_body, reduction); in __TBB_requires()
592 lambda_reduce_body<Range,Value,RealBody,Reduction> body(identity, real_body, reduction); in __TBB_requires()
605 lambda_reduce_body<Range,Value,RealBody,Reduction> body(identity, real_body, reduction); in __TBB_requires()
618 lambda_reduce_body<Range,Value,RealBody,Reduction> body(identity, real_body, reduction); in __TBB_requires()
[all …]
/oneTBB/doc/main/tbb_userguide/
H A Dparallel_reduce.rst7 A loop can do a reduction, as in this summation:
35 The class ``SumFoo`` specifies details of the reduction, such as how to
111 first half of the reduction. Therefore, all actions of the splitting
119 the reduction of the second half starts where reduction of the first
169 - Initialize the reduction variable(s) to the identity element of the
174 than one reduction at the same time: you can gather the min and max with
179 The reduction operation can be non-commutative. The example still
/oneTBB/test/tbb/
H A Dtest_openmp.cpp117 #pragma omp parallel for reduction(+:sum) num_threads(p) in operator ()()
/oneTBB/doc/main/tbb_userguide/Migration_Guide/
H A DTask_API.rst304 // Spawning a continuation that does reduction