Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

179.1. onetbb-2023.1.0

oneAPI Threading Building Blocks: task-parallel C++ runtime

2023.1.0-1 · Apache-2.0 · 0.6 SBU · 2.0 MiB, 164 files · 42_graphics, 15 of 189 · ports/core/devlibs/onetbb

Homepage: https://github.com/uxlfoundation/oneTBB

oneTBB (oneAPI Threading Building Blocks) is a C++ runtime for task parallelism: parallel loops and reductions, flow graphs, concurrent containers, and a scalable memory allocator. Blender, OpenCV, OpenImageIO, OpenVDB, Embree, PrusaSlicer and the other ports that name it in depends run their parallel work on it.

Depends on: cmake, ninja, pkgconf, hwloc.

Required by (13): blender, curaengine, embree, manifold, oidn, opencv, openimageio, openscad, opensubdiv, openvdb, pdf4qt, prusaslicer, stellarium.

Sources: onetbb-2023.1.0.tar.gz (7.4 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install onetbb'

build.sh:

mkdir build && cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \
	-DBUILD_SHARED_LIBS=ON \
	-DTBB_TEST=OFF \
	-DTBB_EXAMPLES=OFF \
	-DTBB_STRICT=OFF \
	-DTBB4PY_BUILD=OFF \
	-DTBBMALLOC_BUILD=ON \
	-DTBBMALLOC_PROXY_BUILD=OFF \
	-DTBB_DISABLE_HWLOC_AUTOMATIC_SEARCH=OFF
ninja
DESTDIR=$PKG ninja install
test -e "$PKG"/usr/lib/libtbbbind_2_5.so

Libraries: libtbb.so, libtbbbind_2_5.so, libtbbmalloc.so.

Directories: /usr/include/oneapi, /usr/include/tbb, /usr/lib/cmake/TBB, /usr/share/doc/TBB, /usr/share/licenses/onetbb.

The last line of build.sh requires libtbbbind_2_5.so. oneTBB names tbbbind after the hwloc it found through pkg-config, tbbbind_2_5 for hwloc 2.5 or later and tbbbind_2_0 below, and builds none when pkg-config finds no hwloc. A configure that missed hwloc therefore stops the build instead of installing a oneTBB without NUMA placement, and an hwloc older than 2.5 stops it too.