Skip to content

Commit f1c4790

Browse files
fixes
1 parent 04599bb commit f1c4790

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

dev/bazel/deps/tbb.bzl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,4 @@ tbb_repo = repos.prebuilt_libs_repo_rule(
2727
"lib/libtbbmalloc.so.2",
2828
],
2929
build_template = "@onedal//dev/bazel/deps:tbb.tpl.BUILD",
30-
# Remove this once support for TBB 2021.11 and older versions is discontinued
31-
local_mapping = {
32-
# Required directory layout and layout in the downloaded
33-
# archives may be different. Mapping helps to setup relations
34-
# between required layout (LHS) and downloaded (RHS).
35-
# In this case, files from `lib/*` will be copied to `lib/intel64/*`.
36-
"lib/": "lib/intel64/gcc4.8/",
37-
},
3830
)

dev/download_tbb.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ if [ ! -d "${DST}/${OS}/bin" ]; then
7575
else
7676
echo tar -xvf "${DST}/${TBB_PACKAGE}" -C "${DST}"
7777
tar -C "${DST}/${OS}" --strip-components=1 -xvf "${DST}/${TBB_PACKAGE}"
78+
# Flatten old TBB layout (lib/intel64/gcc4.8/) to new layout (lib/)
79+
if [ -d "${DST}/${OS}/lib/intel64/gcc4.8" ]; then
80+
mv "${DST}/${OS}/lib/intel64/gcc4.8"/* "${DST}/${OS}/lib/"
81+
rm -rf "${DST}/${OS}/lib/intel64"
82+
fi
7883
fi
7984
ls -al "${DST}/${OS}/"
8085
echo "Downloaded and unpacked oneTBB to ${DST}/${OS}"

0 commit comments

Comments
 (0)