Skip to content

Commit

Permalink
Fix TBB build, migrate to OneTBB
Browse files Browse the repository at this point in the history
  • Loading branch information
fnoop committed Sep 13, 2021
1 parent 649935b commit 3aec72f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
if $tbb == true {
# If ~/var/build/.install_flag_tbb exists, skip pulling source and compiling
if $raspberry_present == "yes" {
$_RPIFLAGS = "-DCMAKE_CXX_FLAGS=-latomic -DOPENCV_EXTRA_EXE_LINKER_FLAGS=-latomic"
$_RPIFLAGS = "-DCMAKE_CXX_FLAGS=-latomic"
} else {
$_RPIFLAGS = ""
}
Expand All @@ -69,25 +69,25 @@
group => "mav",
} ->
exec { "tbb-cmake":
command => "/usr/bin/cmake ${_RPIFLAGS} -DTBB4PY_BUILD=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/srv/maverick/software/tbb .. >/srv/maverick/var/log/build/tbb.cmake.log 2>&1",
command => "/usr/bin/cmake ${_RPIFLAGS} -DPYTHON_EXECUTABLE=/srv/maverick/software/python/bin/python3 -DTBB_TEST=OFF -DTBB4PY_BUILD=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/srv/maverick/software/tbb .. >/srv/maverick/var/log/build/tbb.cmake.log 2>&1",
cwd => "/srv/maverick/var/build/tbb/build",
timeout => 0,
user => "mav",
#creates => "",
creates => "/srv/maverick/var/build/tbb/build/CMakeCache.txt",
} ->
exec { "tbb-build":
command => "/usr/bin/cmake ${_RPIFLAGS} --build . >/srv/maverick/var/log/build/tbb.build.log 2>&1",
command => "/usr/bin/cmake --build . --target all --config Release >/srv/maverick/var/log/build/tbb.build.log 2>&1",
cwd => "/srv/maverick/var/build/tbb/build",
timeout => 0,
user => "mav",
#creates => "",
creates => "/srv/maverick/var/build/tbb/build/src/tbb/CMakeFiles/tbb.dir/version.cpp.o",
} ->
exec { "tbb-install":
command => "/usr/bin/cmake ${_RPIFLAGS} -DCOMPONENT=devel -P cmake_install.cmake >/srv/maverick/var/log/build/tbb.build.log 2>&1",
command => "/usr/bin/cmake ${_RPIFLAGS} -P cmake_install.cmake >/srv/maverick/var/log/build/tbb.install.log 2>&1",
cwd => "/srv/maverick/var/build/tbb/build",
timeout => 0,
user => "mav",
#creates => "",
creates => "/srv/maverick/software/tbb/lib/libtbb.so.12",
} ->
file { "/srv/maverick/var/build/.install_flag_tbb":
ensure => present,
Expand Down

0 comments on commit 3aec72f

Please sign in to comment.