Intel® oneAPI Threading Building Blocks (oneTBB)
  • oneTBB Samples
Intel® oneAPI Threading Building Blocks (oneTBB)
  • oneTBB Samples
  • View page source

oneTBB Samples

To become an expert in using oneTBB, explore its samples and examples to learn how to properly utilize the features and functionality of oneTBB and avoid common mistakes that may impede your performance.

The following samples are available:

  • Containers

    • concurrent_hash_map

    • concurrent_priority_queue

  • Flow Graph
    • A solution to the binpacking problem using a queue_node, a buffer_node, and function_node.

    • Cholesky Factorization algorithm

    • An implementation of dining philosophers in graph using the reserving join_node

    • A parallel implementation of bzip2 block-sorting file compressor

    • An example of a collection of digital logic gates that can be easily composed into larger circuits

    • An example of a Kohonen Self-Organizing Map using cancellation

    • Split computational kernel for execution between CPU and GPU

  • Algorithms

    • parallel_for
      • Game of life overlay

      • Polygon overlay

      • Parallel seismic wave simulation

      • Parallel 2-D raytracer/renderer

      • Find largest matching substrings

      • Resumable task: Split computational kernel for execution between CPU and GPU

    • parallel_for_each

    • parallel_pipeline

    • parallel_reduce

  • Task Scheduler

    • task_arena

    • task_group

    • Execute similar computational kernels, with one task executing the SYCL* code and the other task executing the oneTBB code

  • Other

    • Compute Fibonacci numbers in different ways

Note

You can also refer to the oneAPI Samples to learn more about the ecosystem.


© Copyright 2024, Intel Corporation.

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