-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation for oneTBB 2021.6 (#836)
* Update pull_request_template.md (#751) Signed-off-by: Alexandra Epanchinzeva [email protected] (cherry picked from commit 4eda0f9) * Update CONTRIBUTING.md (#765) (cherry picked from commit e274a9e) * Documentation update for unpreview `task_handle` and related stuff (#755) * Unpreview task_handle and related stuff Signed-off-by: Anton Potapov <[email protected]> Co-authored-by: Alexandra <[email protected]> (cherry picked from commit fd76f45) * Update conf.py (#774) (cherry picked from commit 6666292) * Actualize documentation about proportional splitting constructor in Range (#728) Actualize documentation about proportional splitting Signed-off-by: Fedotov, Aleksei <[email protected]> (cherry picked from commit e5cbe50) * Update doc structure and add new files (#791) (cherry picked from commit ce0d258) * Instruction for building the docs locally (#778) (cherry picked from commit e386960) * Document a way to flow graph can be attached to arbitrary task_arena (#785) * Document a way to flow graph can be attached to arbitrary task_arena task_arena interface provides mechanisms to guide tasks execution within the arena by setting the preferred computation units or restricting part of computation units. In some cases, you may want to use mechanisms within a flow graph. Signed-off-by: Serov, Vladimir <[email protected]> Co-authored-by: Aleksei Fedotov <[email protected]> Co-authored-by: Alexandra Epanchinzeva <[email protected]> (cherry picked from commit a938322) * Add topic about "Lazy Initiliazation" pattern to Design patterns (#790) New topic about Lazy initialization pattern and how it can be implemented using oneapi::tbb::collaborative_call_once has been added. Signed-off-by: Ilya Isaev <[email protected]> (cherry picked from commit 1da8f0d) * Update Get Started Guide (#803) (cherry picked from commit 0502372) * Update intro_gsg.rst (#808) (cherry picked from commit 2c4f282) * Update conf.py (#810) (cherry picked from commit 0a0a592) * TBB DOC : Dev Guide: Task Scheduler Bypass and How Does Task Scheduler Works (#521) * TBB DOC : Dev Guide: Task Scheduler Bypass and How Task Scheduler Works Signed-off-by: Anton Potapov <[email protected]> Co-authored-by: Alexandra <[email protected]> (cherry picked from commit ed9d4b5) * Update intro_gsg.rst (#811) (cherry picked from commit efea993) * Update conf.py (#812) (cherry picked from commit 3859d11) * Update examples.rst (#816) (cherry picked from commit 4aa0b0b) * Update layout.html (#815) (cherry picked from commit 3e352b4) * Update RELEASE_NOTES.md for oneTBB 2021.6 (#835) (cherry picked from commit faaf43c) Co-authored-by: Alexandra <[email protected]> Co-authored-by: Anton Potapov <[email protected]> Co-authored-by: Aleksei Fedotov <[email protected]> Co-authored-by: Vladimir Serov <[email protected]> Co-authored-by: Ilya Isaev <[email protected]> Co-authored-by: Anton Potapov <[email protected]>
- Loading branch information
1 parent
4533e4f
commit c8504c4
Showing
34 changed files
with
604 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,18 +38,21 @@ You can use issues to report a problem, make a feature request, or add comments | |
|
||
You can find all [open oneTBB pull requests](https://github.com/oneapi-src/oneTBB/pulls) on GitHub. | ||
|
||
No anonymous contributions are accepted. The name in the commit message Signed-of-by line and your email must match the change authorship information. Make sure your .gitconfig is set up correctly so you can use `git commit -s` for signing your patches: | ||
No anonymous contributions are accepted. The name in the commit message Signed-off-by line and your email must match the change authorship information. Make sure your .gitconfig is set up correctly so you can use `git commit -s` for signing your patches: | ||
|
||
`git config --global user.name "Taylor Developer"` | ||
|
||
`git config --global user.email [email protected]` | ||
|
||
|
||
Before contributing changes directly to the oneTBB repository: | ||
### Before contributing changes directly to the oneTBB repository | ||
|
||
* Make sure you can build the product and run all the tests with your patch. | ||
* For a larger feature, provide a relevant test. | ||
* Document your code. The oneTBB project uses reStructuredText for documentation. | ||
* Update the copyright year in the first line of the changing file(s). | ||
For example, if you commit your changes in 2022: | ||
* the copyright year should be `2005-2022` for existing files | ||
* the copyright year should be `2022` for new files | ||
* Submit a pull request into the master branch. You can submit changes with a pull request (preferred) or by sending an email patch. | ||
|
||
Continuous Integration (CI) testing is enabled for the repository. Your pull request must pass all checks before it can be merged. We will review your contribution and may provide feedback to guide you if any additional fixes or modifications are necessary. When reviewed and accepted, your pull request will be merged into our GitHub repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
.. _examples: | ||
|
||
oneTBB Samples | ||
============== | ||
|
||
Refer to the following examples to see how |short_name| works. | ||
|
||
* **Containers** | ||
|
||
* `concurrent_hash_map <https://github.com/oneapi-src/oneTBB/tree/master/examples/concurrent_hash_map>`_ | ||
* `concurrent_priority_queue <https://github.com/oneapi-src/oneTBB/tree/master/examples/concurrent_priority_queue>`_ | ||
|
||
* `Flow Graph <https://github.com/oneapi-src/oneTBB/tree/master/examples/graph>`_ | ||
* `A solution to the binpacking problem using a queue_node, a buffer_node, and function_node. <https://github.com/oneapi-src/oneTBB/tree/master/examples/graph/binpack>`_ | ||
* `Cholesky Factorization algorithm <https://github.com/oneapi-src/oneTBB/tree/master/examples/graph/cholesky>`_ | ||
* `An implementation of dining philosophers in graph using the reserving join_node <https://github.com/oneapi-src/oneTBB/tree/master/examples/graph/dining_philosophers>`_ | ||
* `A parallel implementation of bzip2 block-sorting file compressor <https://github.com/oneapi-src/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/oneapi-src/oneTBB/tree/master/examples/graph/logic_sim>`_ | ||
* `An example of a Kohonen Self-Organizing Map using cancellation <https://github.com/oneapi-src/oneTBB/tree/master/examples/graph/som>`_ | ||
* `Split computational kernel for execution between CPU and GPU <https://github.com/oneapi-src/oneAPI-samples/tree/master/Libraries/oneTBB/tbb-async-sycl>`_ | ||
|
||
* **Algorithms** | ||
|
||
* `parallel_for <https://github.com/oneapi-src/oneTBB/tree/master/examples/parallel_for>`_ | ||
* `Game of life overlay <https://github.com/oneapi-src/oneTBB/tree/master/examples/parallel_for/game_of_life>`_ | ||
* `Polygon overlay <https://github.com/oneapi-src/oneTBB/tree/master/examples/parallel_for/polygon_overlay>`_ | ||
* `Parallel seismic wave simulation <https://github.com/oneapi-src/oneTBB/tree/master/examples/parallel_for/seismic>`_ | ||
* `Parallel 2-D raytracer/renderer <https://github.com/oneapi-src/oneTBB/tree/master/examples/parallel_for/tachyon>`_ | ||
* `Find largest matching substrings <https://github.com/oneapi-src/oneTBB/tree/master/examples/getting_started>`_ | ||
* `Resumable task: Split computational kernel for execution between CPU and GPU <https://github.com/oneapi-src/oneAPI-samples/tree/master/Libraries/oneTBB/tbb-resumable-tasks-sycl>`_ | ||
* `parallel_for_each <https://github.com/oneapi-src/oneTBB/tree/master/examples/parallel_for_each>`_ | ||
* `parallel_pipeline <https://github.com/oneapi-src/oneTBB/tree/master/examples/parallel_pipeline>`_ | ||
* `parallel_reduce <https://github.com/oneapi-src/oneTBB/tree/master/examples/parallel_reduce>`_ | ||
|
||
* **Task Scheduler** | ||
|
||
* `task_arena <https://github.com/oneapi-src/oneTBB/tree/master/examples/task_arena>`_ | ||
* `task_group <https://github.com/oneapi-src/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/oneapi-src/oneAPI-samples/tree/master/Libraries/oneTBB/tbb-task-sycl>`_ | ||
|
||
* **Other** | ||
|
||
* `Compute Fibonacci numbers in different ways <https://github.com/oneapi-src/oneTBB/tree/master/examples/test_all>`_ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.. _installation: | ||
|
||
Installation | ||
============ | ||
|
||
See the `installation instructions <https://github.com/oneapi-src/oneTBB/blob/master/INSTALL.md>`_ | ||
that will help you to install |short_name| successfully. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
.. _Intro_gsg: | ||
|
||
|
||
|short_name| is a runtime-based parallel programming model for C++ code that uses threads. | ||
It enables you to simplify parallel programming by breaking | ||
computation into parallel running tasks. | ||
The library consists of a template-based runtime library to help you harness the latent performance | ||
of multi-core processors. Use |short_name| to write scalable applications that: | ||
|full_name| is a runtime-based parallel programming model for C++ code that uses threads. | ||
It consists of a template-based runtime library to help you harness the latent performance of multi-core processors. | ||
|
||
oneTBB enables you to simplify parallel programming by breaking computation into parallel running tasks. Within a single process, | ||
parallelism is carried out through threads, an operating system mechanism that allows the same or different sets of instructions | ||
to be executed simultaneously. | ||
|
||
- Specify logical parallel structure instead of threads | ||
- Emphasize data parallel programming | ||
- Take advantage of concurrent collections and parallel algorithms | ||
Here you can see one of the possible executions of tasks by threads. | ||
|
||
.. figure:: /GSG/Images/how-oneTBB-works.png | ||
:scale: 70% | ||
:align: center | ||
|
||
Use oneTBB to write scalable applications that: | ||
|
||
* Specify logical parallel structure instead of threads | ||
* Emphasize data-parallel programming | ||
* Take advantage of concurrent collections and parallel algorithms | ||
|
||
oneTBB supports nested parallelism and load balancing. It means that you can use the library without being worried about oversubscribing a system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#=============================================================================== | ||
# Copyright (C) 2022 Intel Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
#=============================================================================== | ||
|
||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = doc | ||
BUILDDIR = build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# How to build oneTBB documentation | ||
|
||
Our documentation is written in restructured text markup (.rst) and built using [Sphinx](http://www.sphinx-doc.org/en/master/). | ||
|
||
This document explains how to build oneTBB documentation locally. | ||
|
||
## Prerequisites | ||
- Python 3.7.0 or higher | ||
- Sphinx | ||
|
||
## Build documentation | ||
|
||
Do the following to generate HTML output of the documentation: | ||
|
||
1. Clone oneTBB repository: | ||
|
||
``` | ||
git clone https://github.com/oneapi-src/oneTBB.git | ||
``` | ||
|
||
2. Go to the `doc` folder: | ||
|
||
``` | ||
cd oneTBB/doc | ||
``` | ||
|
||
3. Run in the command line: | ||
|
||
``` | ||
make html | ||
``` | ||
|
||
|
||
That's it! Your built documentation is located in the ``build/html`` folder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,33 @@ | ||
.. _toctree: | ||
|
||
.. toctree:: | ||
:caption: About | ||
:maxdepth: 1 | ||
|
||
/main/intro/help_support | ||
/main/intro/notation | ||
/main/intro/intro_os | ||
/main/intro/Benefits | ||
|
||
|
||
.. toctree:: | ||
:caption: Get Started | ||
:maxdepth: 2 | ||
|
||
main/intro/help_support | ||
main/intro/notation | ||
main/intro/intro_os | ||
main/intro/Benefits | ||
GSG/get_started | ||
main/tbb_userguide/title | ||
main/reference/reference | ||
main/intro/notices_and_disclaimers | ||
/GSG/get_started | ||
/GSG/installation | ||
/GSG/examples | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
:caption: Developer Guide | ||
|
||
/main/tbb_userguide/title | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
:caption: Developer Reference | ||
|
||
/main/reference/reference |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.