Skip to content

Commit 6e6199c

Browse files
authored
Merge pull request #160 from hsbadr/develop
README: example: Update to oneTBB 2021.2.0
2 parents 63fe817 + 2f9b96c commit 6e6199c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ To build the development version of `RcppParallel` with [`oneTBB`](https://githu
2424
For example, installing [`oneTBB`](https://github.com/oneapi-src/oneTBB) on Linux 64-bit (`x86_64`) to `$HOME` directory (change if needed!):
2525

2626
```bash
27-
TBB_VERSION="2021.1.1"
27+
TBB_RELEASE="https://api.github.com/repos/oneapi-src/oneTBB/releases/latest"
28+
TBB_TAG=$(curl --silent $TBB_RELEASE | grep -Po '"tag_name": "\K.*?(?=")')
29+
TBB_VERSION=${TBB_TAG#?}
2830

2931
wget https://github.com/oneapi-src/oneTBB/releases/download/v$TBB_VERSION/oneapi-tbb-$TBB_VERSION-lin.tgz
3032
tar zxvf oneapi-tbb-$TBB_VERSION-lin.tgz -C $HOME
3133

3234
export TBB="$HOME/oneapi-tbb-$TBB_VERSION"
3335
```
36+
Note that you may replace `TBB_VERSION=${TBB_TAG#?}` with a custom version number if needed ( check available releases [here](https://github.com/oneapi-src/oneTBB/releases) ).
3437

3538
- Set the TBB environment variables (specifically: `TBB` for the installation prefix, `TBB_INC` for the directory that includes the header files, and `TBB_LIB` for the libraries directory).
3639

0 commit comments

Comments
 (0)