Intel® oneAPI Threading Building Blocks (oneTBB)
  • Getting Help and Support
  • Notational Conventions
  • Introduction
  • oneTBB Benefits
  • oneTBB Developer Guide
    • Package Contents
    • Parallelizing Simple Loops
    • Parallelizing Complex Loops
    • Parallelizing Data Flow and Dependence Graphs
    • Work Isolation
    • Exceptions and Cancellation
    • Floating-point Settings
    • Containers
    • Mutual Exclusion
    • Timing
    • Memory Allocation
    • The Task Scheduler
    • Design Patterns
    • Migrating from Threading Building Blocks (TBB)
      • Migrating from tbb::task_scheduler_init
      • Migrating from low-level task API
      • Mixing two runtimes
    • Constrained APIs
    • Invoke a Callable Object
    • Appendix A Costs of Time Slicing
    • Appendix B Mixing With Other Threading Packages
    • References
  • oneTBB API Reference
  • Notices and Disclaimers
Intel® oneAPI Threading Building Blocks (oneTBB)
  • oneTBB Developer Guide
  • Migrating from Threading Building Blocks (TBB)
  • View page source

Migrating from Threading Building Blocks (TBB)

While oneTBB is mostly source compatible with TBB, some interfaces were deprecated in TBB and redesigned or removed in oneTBB. This section considers the most difficult use cases for migrating TBB to oneTBB.

  • Migrating from tbb::task_scheduler_init
    • Managing the number of threads
      • Querying the default number of threads
      • Setting the maximum concurrency
      • Examples
    • Setting thread stack size
    • Terminating oneTBB scheduler
  • Migrating from low-level task API
    • Spawning of individual tasks
      • Using oneapi::tbb::task_group
      • Using oneapi::tbb::parallel_invoke
    • Adding more work during task execution
    • Task recycling
      • Recycling as child or continuation
    • Scheduler Bypass
    • Deferred task creation
  • Mixing two runtimes
Previous Next

© Copyright 2024, Intel Corporation.

Built with Sphinx using a theme provided by Read the Docs.