Skip to content
Snippets Groups Projects
Commit a08f8a85 authored by Jan Siwiec's avatar Jan Siwiec
Browse files

Update intel-tbb.md

parent 216f4372
No related branches found
No related tags found
4 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section
...@@ -10,13 +10,13 @@ Intel is available on the cluster. ...@@ -10,13 +10,13 @@ Intel is available on the cluster.
$ ml av tbb $ ml av tbb
``` ```
The module sets up environment variables, required for linking and running tbb enabled applications. The module sets up environment variables, required for linking and running TBB-enabled applications.
Link the tbb library, using -ltbb Link the TBB library using -ltbb.
## Examples ## Examples
Number of examples, demonstrating use of TBB and its built-in scheduler is available on Anselm, in the $TBB_EXAMPLES directory. A number of examples demonstrating use of TBB and its built-in scheduler is available on Anselm, in the $TBB_EXAMPLES directory.
```console ```console
$ ml intel $ ml intel
...@@ -27,9 +27,9 @@ $ icc -O2 -DNDEBUG -o primes.x main.cpp primes.cpp -ltbb ...@@ -27,9 +27,9 @@ $ icc -O2 -DNDEBUG -o primes.x main.cpp primes.cpp -ltbb
$ ./primes.x $ ./primes.x
``` ```
In this example, we compile, link and run the primes example, demonstrating use of parallel task-based reduce in computation of prime numbers. In this example, we compile, link, and run the primes example, demonstrating use of parallel task-based reduce in computation of prime numbers.
You will need the tbb module loaded to run the tbb enabled executable. This may be avoided, by compiling library search paths into the executable. You will need the tbb module loaded to run the TBB-enabled executable. This may be avoided by compiling library search paths into the executable.
```console ```console
$ icc -O2 -o primes.x main.cpp primes.cpp -Wl,-rpath=$LIBRARY_PATH -ltbb $ icc -O2 -o primes.x main.cpp primes.cpp -Wl,-rpath=$LIBRARY_PATH -ltbb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment