doc/GSG/samples.rst
.. _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 <https://github.com/uxlfoundation/oneTBB/tree/master/examples/concurrent_hash_map>_concurrent_priority_queue <https://github.com/uxlfoundation/oneTBB/tree/master/examples/concurrent_priority_queue>_Flow Graph <https://github.com/uxlfoundation/oneTBB/tree/master/examples/graph>_
A solution to the binpacking problem using a queue_node, a buffer_node, and function_node. <https://github.com/uxlfoundation/oneTBB/tree/master/examples/graph/binpack>_Cholesky Factorization algorithm <https://github.com/uxlfoundation/oneTBB/tree/master/examples/graph/cholesky>_An implementation of dining philosophers in graph using the reserving join_node <https://github.com/uxlfoundation/oneTBB/tree/master/examples/graph/dining_philosophers>_A parallel implementation of bzip2 block-sorting file compressor <https://github.com/uxlfoundation/oneTBB/tree/master/examples/graph/fgbzip2>_An example of a collection of digital logic gates that can be easily composed into larger circuits <https://github.com/uxlfoundation/oneTBB/tree/master/examples/graph/logic_sim>_An example of a Kohonen Self-Organizing Map using cancellation <https://github.com/uxlfoundation/oneTBB/tree/master/examples/graph/som>_Split computational kernel for execution between CPU and GPU <https://github.com/uxlfoundation/oneTBB/tree/master/examples/sycl/tbb-async-sycl>_Algorithms
parallel_for <https://github.com/uxlfoundation/oneTBB/tree/master/examples/parallel_for>_
Game of life overlay <https://github.com/uxlfoundation/oneTBB/tree/master/examples/parallel_for/game_of_life>_Polygon overlay <https://github.com/uxlfoundation/oneTBB/tree/master/examples/parallel_for/polygon_overlay>_Parallel seismic wave simulation <https://github.com/uxlfoundation/oneTBB/tree/master/examples/parallel_for/seismic>_Parallel 2-D raytracer/renderer <https://github.com/uxlfoundation/oneTBB/tree/master/examples/parallel_for/tachyon>_Find largest matching substrings <https://github.com/uxlfoundation/oneTBB/tree/master/examples/getting_started>_Resumable task: Split computational kernel for execution between CPU and GPU <https://github.com/uxlfoundation/oneTBB/tree/master/examples/sycl/tbb-resumable-tasks-sycl>_parallel_for_each <https://github.com/uxlfoundation/oneTBB/tree/master/examples/parallel_for_each>_parallel_pipeline <https://github.com/uxlfoundation/oneTBB/tree/master/examples/parallel_pipeline>_parallel_reduce <https://github.com/uxlfoundation/oneTBB/tree/master/examples/parallel_reduce>_Task Scheduler
task_arena <https://github.com/uxlfoundation/oneTBB/tree/master/examples/task_arena>_task_group <https://github.com/uxlfoundation/oneTBB/tree/master/examples/task_group>_Execute similar computational kernels, with one task executing the SYCL* code and the other task executing the oneTBB code <https://github.com/uxlfoundation/oneTBB/tree/master/examples/sycl/tbb-task-sycl>_Other
Compute Fibonacci numbers in different ways <https://github.com/uxlfoundation/oneTBB/tree/master/examples/test_all>_.. note:: You can also refer to the oneAPI Samples <https://oneapi-src.github.io/oneAPI-samples/>_ to learn more about the ecosystem.