Intel® oneAPI Threading Building Blocks Release Notes

Published: 10/28/2019  

Last Updated: 09/21/2021

Where to Find the Release

Intel® oneAPI Threading Building Blocks

New in 2021.4 Release

Preview Features

  • Introduced the collaborative_call_once algorithm that executes the callable object exactly once, but allows other threads to join oneTBB parallel construction used inside this callable object. Inspired by Ben FrantzDale and Henry Heffan.

Known Limitations

  • An application using Parallel STL algorithms in libstdc++ versions 9 and 10 may fail to compile due to incompatible interface changes between earlier versions of Threading Building Blocks (TBB) and oneAPI Threading Building Blocks (oneTBB). Disable support for Parallel STL algorithms by defining PSTL_USE_PARALLEL_POLICIES (in libstdc++ 9) or _GLIBCXX_USE_TBB_PAR_BACKEND (in libstdc++ 10) macro to zero before inclusion of the first standard header file in each translation unit.
  • On Linux* OS, if oneAPI Threading Building Blocks (oneTBB) or Threading Building Blocks (TBB) are installed in a system folder like /usr/lib64, the application may fail to link due to the order in which the linker searches for libraries. Use the -L linker option to specify the correct location of oneTBB library. This issue does not affect the program execution.
  • The oneapi::tbb::info namespace interfaces might unexpectedly change the process affinity mask on Windows* OS systems (see https://github.com/open-mpi/hwloc/issues/366 for details) when using hwloc version lower than 2.5.
  • Using a hwloc version other than 1.11, 2.0, or 2.5 may cause an undefined behavior on Windows OS. See https://github.com/open-mpi/hwloc/issues/477 for details.
  • The NUMA topology may be detected incorrectly on Windows OS machines where the number of NUMA node threads exceeds the size of 1 processor group.
  • On Windows OS on ARM64*, when compiling an application using oneTBB with the Microsoft* Compiler, the compiler issues a warning C4324 that a structure was padded due to the alignment specifier. Consider suppressing the warning by specifying /wd4324 to the compiler command line.
  • oneTBB does not support fork(), to work-around the issue, consider using task_scheduler_handle to join oneTBB worker threads before using fork().

Fixed Issues

  • Enabled full support of Address Sanitizer and Thread Sanitizer.
  • Fixed a race condition in tbbmalloc that may cause a crash in realloc() when using tbbmalloc_proxy.
  • Enabled GCC* 11 support.
  • Fixed limiter_node behavior when an integral type is used as an argument for the DecrementType template parameter.
  • Fixed a possible memory leak when the static or affinity partitioners are used.
  • Fixed possible system oversubscription when using a process mask and an explicit number of threads in the task arena.

Open-source Contributions Integrated

New in 2021.3 Release

New Features

  • Since C++20 multiple interfaces are constrained to enforce requirements on argument types.

Preview Features

  • Extended the high-level task API to simplify migration from TBB to oneTBB.
  • Added mutex and rw_mutex that are suitable for long critical sections and resistant to high contention.
  • Added ability to customize the concurrent_hash_map mutex type.
  • Added heterogeneous lookup, erase, and insert operations to concurrent_hash_map.

Known Limitations

  • An application using Parallel STL algorithms in libstdc++ versions 9 and 10 may fail to compile due to incompatible interface changes between earlier versions of Threading Building Blocks (TBB) and oneAPI Threading Building Blocks (oneTBB). Disable support for Parallel STL algorithms by defining PSTL_USE_PARALLEL_POLICIES (in libstdc++ 9) or _GLIBCXX_USE_TBB_PAR_BACKEND (in libstdc++  10) macro to zero before inclusion of the first standard header file in each translation unit.
  • On Linux, if oneAPI Threading Building Blocks (oneTBB) or Threading Building Blocks (TBB) is installed in a system folder like /usr/lib64, the application may fail to link due to the linker search order for libraries. Use the -L linker option to specify the correct location of oneTBB libraries. This issue does not affect program execution.
  • The oneapi::tbb::info namespace interfaces might unexpectedly change the process affinity mask on Windows systems (see https://github.com/open-mpi/hwloc/issues/366 for details).

Fixed Issues

  • Fixed several issues in parallel algorithms and concurrent containers on ARM.
  • Improved ThreadSanitizer support for the oneTBB Scalable Memory Allocator.
  • Improved scheduler to reduce the impact of thread priority inversion.
  • Fixed the behavior of affinity_partitioner and static_partitioner to resolve possible performance issues.
  • Fixed crash when finalize is called with null scheduler_handler.
  • Fixed the oneTBB assertion mechanism to avoid possible leaking of user directory paths.
  • Fixed crash in resumable tasks on ARM-based macOS.
  • Fixed compilation failures:

Open-source Contributions Integrated

New in 2021.2 Release

New Features

  • Added three-way comparison operators for concurrent ordered containers and concurrent_vector.

Preview Features

  • Extended task_arena constraints to support Intel Hybrid Technology and Intel Hyper-Threading Technology. To enable the feature set TBB_PREVIEW_TASK_ARENA_CONSTRAINTS_EXTENSION to 1.

Known Limitations

  • An application using Parallel STL algorithms in libstdc++ versions 9 and 10 may fail to compile due to incompatible interface changes between earlier versions of Threading Building Blocks (TBB) and oneAPI Threading Building Blocks (oneTBB). Disable support for Parallel STL algorithms by defining PSTL_USE_PARALLEL_POLICIES (in libstdc++ 9) or _GLIBCXX_USE_TBB_PAR_BACKEND (in libstdc++  10) macro to zero before inclusion of the first standard header file in each translation unit.
  • On Linux, if oneAPI Threading Building Blocks (oneTBB) or Threading Building Blocks (TBB) has been installed to a system folder like /usr/lib64, the application may fail to link due to the linker search order for libraries. Use the -L linker option to specify the correct location of oneTBB libraries. This issue does not affect program execution.
  • The oneapi::tbb::info namespace interfaces might unexpectedly change the process affinity mask on Windows systems (see https://github.com/open-mpi/hwloc/issues/366 for details).

Fixed Issues

New in 2021.1 Release

Changes affecting backward compatibility

New Features

  • Concurrent ordered containers, task_arena interface extension for NUMA, flow graph API to support relative priorities for functional nodes and resumable tasks are fully supported now.
  • Added the terminate_on_exception property for global_control to prevent exceptions from the oneTBB library and terminate the library instead of throwing an exception.
  • Reworked error handling for thread creation API to throw an exception to report an error. Inspired by Andrey Semashev (https://github.com/oneapi-src/oneTBB/issues/255).
  • Upgraded the oneTBB Python module from Python2 to Python3. Inspired by Eisuke Kawashima (https://github.com/oneapi-src/oneTBB/pull/240).
  • Implemented task_arena interface extension to specify priority of the arena.

Preview Features

  • Introduced the task_scheduler_handler class as a replacement for blocking terminate extension of the task_scheduler_init class.

Known Limitations

  • An application using Parallel STL algorithms in libstdc++ versions 9 and 10 may fail to compile due to incompatible interface changes between earlier versions of Threading Building Blocks (TBB) and oneAPI Threading Building Blocks (oneTBB). Disable support for Parallel STL algorithms by defining PSTL_USE_PARALLEL_POLICIES (in libstdc++ 9) or _GLIBCXX_USE_TBB_PAR_BACKEND (in libstdc++  10) macro to zero before inclusion of the first standard header file in each translation unit.
  • On Linux, if oneAPI Threading Building Blocks (oneTBB) or Threading Building Blocks (TBB) has been installed to a system folder like /usr/lib64, the application may fail to link due to the linker search order for libraries. Use the -L linker option to specify the correct location of oneTBB libraries. This issue does not affect program execution.

Fixed Issues

 

Notices and Disclaimers

Intel technologies may require enabled hardware, software or service activation.

No product or component can be absolutely secure.

Your costs and results may vary.

© Intel Corporation. Intel, the Intel logo, and other Intel marks are trademarks of Intel Corporation or its subsidiaries. Other names and brands may be claimed as the property of others.

No license (express or implied, by estoppel or otherwise) to any intellectual property rights is granted by this document.

The products described may contain design defects or errors known as errata which may cause the product to deviate from published specifications. Current characterized errata are available on request.

Intel disclaims all express and implied warranties, including without limitation, the implied warranties of merchantability, fitness for a particular purpose, and non-infringement, as well as any warranty arising from course of performance, course of dealing, or usage in trade.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.