Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::serial::interface9 Namespace Reference

Classes

class  start_for
 

Functions

template<typename Range , typename Body >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (const Range &range, const Body &body)
 Parallel iteration over range with default partitioner. More...
 
template<typename Range , typename Body >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (const Range &range, const Body &body, const simple_partitioner &partitioner)
 Parallel iteration over range with simple partitioner. More...
 
template<typename Range , typename Body >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (const Range &range, const Body &body, const auto_partitioner &partitioner)
 Parallel iteration over range with auto_partitioner. More...
 
template<typename Range , typename Body >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (const Range &range, const Body &body, const static_partitioner &partitioner)
 Parallel iteration over range with static_partitioner. More...
 
template<typename Range , typename Body >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (const Range &range, const Body &body, affinity_partitioner &partitioner)
 Parallel iteration over range with affinity_partitioner. More...
 
template<typename Index , typename Function , typename Partitioner >
void parallel_for_impl (Index first, Index last, Index step, const Function &f, Partitioner &)
 Implementation of parallel iteration over stepped range of integers with explicit step and partitioner (ignored) More...
 
template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (Index first, Index last, Index step, const Function &f)
 Parallel iteration over a range of integers with explicit step and default partitioner. More...
 
template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (Index first, Index last, Index step, const Function &f, const simple_partitioner &p)
 Parallel iteration over a range of integers with explicit step and simple partitioner. More...
 
template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (Index first, Index last, Index step, const Function &f, const auto_partitioner &p)
 Parallel iteration over a range of integers with explicit step and auto partitioner. More...
 
template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (Index first, Index last, Index step, const Function &f, const static_partitioner &p)
 Parallel iteration over a range of integers with explicit step and static partitioner. More...
 
template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (Index first, Index last, Index step, const Function &f, affinity_partitioner &p)
 Parallel iteration over a range of integers with explicit step and affinity partitioner. More...
 
template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (Index first, Index last, const Function &f)
 Parallel iteration over a range of integers with default step and default partitioner. More...
 
template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (Index first, Index last, const Function &f, const simple_partitioner &p)
 Parallel iteration over a range of integers with default step and simple partitioner. More...
 
template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (Index first, Index last, const Function &f, const auto_partitioner &p)
 Parallel iteration over a range of integers with default step and auto partitioner. More...
 
template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (Index first, Index last, const Function &f, const static_partitioner &p)
 Parallel iteration over a range of integers with default step and static partitioner. More...
 
template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void parallel_for (Index first, Index last, const Function &f, affinity_partitioner &p)
 Parallel iteration over a range of integers with default step and affinity_partitioner. More...
 

Function Documentation

◆ parallel_for() [1/10]

template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void tbb::serial::interface9::parallel_for ( Index  first,
Index  last,
Index  step,
const Function &  f 
)

Parallel iteration over a range of integers with explicit step and default partitioner.

Definition at line 164 of file serial/tbb/parallel_for.h.

164  {
165  parallel_for_impl<Index,Function,const auto_partitioner>(first, last, step, f, auto_partitioner());
166 }
auto last(Container &c) -> decltype(begin(c))
auto first(Container &c) -> decltype(begin(c))

References tbb::internal::first(), and tbb::internal::last().

Here is the call graph for this function:

◆ parallel_for() [2/10]

template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void tbb::serial::interface9::parallel_for ( Index  first,
Index  last,
Index  step,
const Function &  f,
const simple_partitioner p 
)

Parallel iteration over a range of integers with explicit step and simple partitioner.

Definition at line 169 of file serial/tbb/parallel_for.h.

169  {
170  parallel_for_impl<Index,Function,const simple_partitioner>(first, last, step, f, p);
171 }
auto last(Container &c) -> decltype(begin(c))
void const char const char int ITT_FORMAT __itt_group_sync p
auto first(Container &c) -> decltype(begin(c))

References tbb::internal::first(), tbb::internal::last(), and p.

Here is the call graph for this function:

◆ parallel_for() [3/10]

template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void tbb::serial::interface9::parallel_for ( Index  first,
Index  last,
Index  step,
const Function &  f,
const auto_partitioner p 
)

Parallel iteration over a range of integers with explicit step and auto partitioner.

Definition at line 174 of file serial/tbb/parallel_for.h.

174  {
175  parallel_for_impl<Index,Function,const auto_partitioner>(first, last, step, f, p);
176 }
auto last(Container &c) -> decltype(begin(c))
void const char const char int ITT_FORMAT __itt_group_sync p
auto first(Container &c) -> decltype(begin(c))

References tbb::internal::first(), tbb::internal::last(), and p.

Here is the call graph for this function:

◆ parallel_for() [4/10]

template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void tbb::serial::interface9::parallel_for ( Index  first,
Index  last,
Index  step,
const Function &  f,
const static_partitioner p 
)

Parallel iteration over a range of integers with explicit step and static partitioner.

Definition at line 179 of file serial/tbb/parallel_for.h.

179  {
180  parallel_for_impl<Index,Function,const static_partitioner>(first, last, step, f, p);
181 }
auto last(Container &c) -> decltype(begin(c))
void const char const char int ITT_FORMAT __itt_group_sync p
auto first(Container &c) -> decltype(begin(c))

References tbb::internal::first(), tbb::internal::last(), and p.

Here is the call graph for this function:

◆ parallel_for() [5/10]

template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void tbb::serial::interface9::parallel_for ( Index  first,
Index  last,
Index  step,
const Function &  f,
affinity_partitioner p 
)

Parallel iteration over a range of integers with explicit step and affinity partitioner.

Definition at line 184 of file serial/tbb/parallel_for.h.

184  {
185  parallel_for_impl(first, last, step, f, p);
186 }
void parallel_for_impl(Index first, Index last, Index step, const Function &f, Partitioner &)
Implementation of parallel iteration over stepped range of integers with explicit step and partitione...
auto last(Container &c) -> decltype(begin(c))
void const char const char int ITT_FORMAT __itt_group_sync p
auto first(Container &c) -> decltype(begin(c))

References tbb::internal::first(), tbb::internal::last(), p, and parallel_for_impl().

Here is the call graph for this function:

◆ parallel_for() [6/10]

template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void tbb::serial::interface9::parallel_for ( Index  first,
Index  last,
const Function &  f 
)

Parallel iteration over a range of integers with default step and default partitioner.

Definition at line 190 of file serial/tbb/parallel_for.h.

190  {
191  parallel_for_impl<Index,Function,const auto_partitioner>(first, last, static_cast<Index>(1), f, auto_partitioner());
192 }
auto last(Container &c) -> decltype(begin(c))
auto first(Container &c) -> decltype(begin(c))

References tbb::internal::first(), and tbb::internal::last().

Here is the call graph for this function:

◆ parallel_for() [7/10]

template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void tbb::serial::interface9::parallel_for ( Index  first,
Index  last,
const Function &  f,
const simple_partitioner p 
)

Parallel iteration over a range of integers with default step and simple partitioner.

Definition at line 195 of file serial/tbb/parallel_for.h.

195  {
196  parallel_for_impl<Index,Function,const simple_partitioner>(first, last, static_cast<Index>(1), f, p);
197 }
auto last(Container &c) -> decltype(begin(c))
void const char const char int ITT_FORMAT __itt_group_sync p
auto first(Container &c) -> decltype(begin(c))

References tbb::internal::first(), tbb::internal::last(), and p.

Here is the call graph for this function:

◆ parallel_for() [8/10]

template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void tbb::serial::interface9::parallel_for ( Index  first,
Index  last,
const Function &  f,
const auto_partitioner p 
)

Parallel iteration over a range of integers with default step and auto partitioner.

Definition at line 200 of file serial/tbb/parallel_for.h.

200  {
201  parallel_for_impl<Index,Function,const auto_partitioner>(first, last, static_cast<Index>(1), f, p);
202 }
auto last(Container &c) -> decltype(begin(c))
void const char const char int ITT_FORMAT __itt_group_sync p
auto first(Container &c) -> decltype(begin(c))

References tbb::internal::first(), tbb::internal::last(), and p.

Here is the call graph for this function:

◆ parallel_for() [9/10]

template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void tbb::serial::interface9::parallel_for ( Index  first,
Index  last,
const Function &  f,
const static_partitioner p 
)

Parallel iteration over a range of integers with default step and static partitioner.

Definition at line 205 of file serial/tbb/parallel_for.h.

205  {
206  parallel_for_impl<Index,Function,const static_partitioner>(first, last, static_cast<Index>(1), f, p);
207 }
auto last(Container &c) -> decltype(begin(c))
void const char const char int ITT_FORMAT __itt_group_sync p
auto first(Container &c) -> decltype(begin(c))

References tbb::internal::first(), tbb::internal::last(), and p.

Here is the call graph for this function:

◆ parallel_for() [10/10]

template<typename Index , typename Function >
__TBB_DEPRECATED_IN_VERBOSE_MODE void tbb::serial::interface9::parallel_for ( Index  first,
Index  last,
const Function &  f,
affinity_partitioner p 
)

Parallel iteration over a range of integers with default step and affinity_partitioner.

Definition at line 210 of file serial/tbb/parallel_for.h.

210  {
211  parallel_for_impl(first, last, static_cast<Index>(1), f, p);
212 }
void parallel_for_impl(Index first, Index last, Index step, const Function &f, Partitioner &)
Implementation of parallel iteration over stepped range of integers with explicit step and partitione...
auto last(Container &c) -> decltype(begin(c))
void const char const char int ITT_FORMAT __itt_group_sync p
auto first(Container &c) -> decltype(begin(c))

References tbb::internal::first(), tbb::internal::last(), p, and parallel_for_impl().

Here is the call graph for this function:

◆ parallel_for_impl()

template<typename Index , typename Function , typename Partitioner >
void tbb::serial::interface9::parallel_for_impl ( Index  first,
Index  last,
Index  step,
const Function &  f,
Partitioner &   
)

Implementation of parallel iteration over stepped range of integers with explicit step and partitioner (ignored)

Definition at line 142 of file serial/tbb/parallel_for.h.

142  {
143  if (step <= 0 ) {
144 #if TBB_USE_EXCEPTIONS
145  throw std::invalid_argument( "nonpositive_step" );
146 #else
147  std::cerr << "nonpositive step in a call to parallel_for" << std::endl;
148  std::abort();
149 #endif
150  } else if (last > first) {
151  // Above "else" avoids "potential divide by zero" warning on some platforms
152  ANNOTATE_SITE_BEGIN( tbb_parallel_for );
153  for( Index i = first; i < last; i = i + step ) {
154  ANNOTATE_TASK_BEGIN( tbb_parallel_for_iteration );
155  { f( i ); }
156  ANNOTATE_TASK_END( tbb_parallel_for_iteration );
157  }
158  ANNOTATE_SITE_END( tbb_parallel_for );
159  }
160 }
auto last(Container &c) -> decltype(begin(c))
auto first(Container &c) -> decltype(begin(c))

References tbb::internal::first(), and tbb::internal::last().

Referenced by parallel_for().

Here is the call graph for this function:
Here is the caller graph for this function:

Copyright © 2005-2020 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.