I want to activate OCC's multi-threading in my non-parallel C++ code. I built OCC using cmake in Linux and set USE_TBB and INSTALL_TBB as ON in ccmake.
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/local/share/doc/opencascade/LICENSE_LGPL_21.txt
-- Up-to-date: /usr/local/share/doc/opencascade/OCCT_LGPL_EXCEPTION.txt
-- Installing: /usr/local/lib/tbb.2
-- Installing: /usr/local/lib/tbbmalloc.2
Unfortunately, only one processor is running with the following implementation, populated with multiple thousand TopoDS_Faces:
BOPAlgo_Builder builder; [...] builder.SetRunParallel(true); builder.Perform();
Did I miss some setting, I have to make? Can I check the correct installation of TBB? Do I need to specify something, when compiling the code (I already include -ltbb)?
Thanks for your help