I am currently using a TBB flow graph in which a) a parallel filter processes an array (in parallel with offsets) and puts processed results into an intermediate vector (allocated on the heap; mostly the vector will grow up to 8MB). These vectors are then passed to nodes which then postprocess these results based on their characteristics (determined in a)). Because of synchronized resources, there can only be one such node for each characteristic. The prototype we wrote works well on UMA architectures (tested on a single CPU Ivy Bridge and Sandy Bridge architecture).
Intel® Threading Building Blocks
Visual Studio 2012 – Windows XP (v110_xp)
Is there a plan to release the tbb binaries built with Visual Studio 2012 – Windows XP (v110_xp)? This would allow the binaries to run on Windows XP and Windows Server 2003.
Thank you,
Jon
In the Property Pages dialog box for the project, under Configuration Properties, General, set the Platform Toolset property to Visual Studio 2012 – Windows XP (v110_xp).
Using a lock with recursive mutex for condition variable
Hi,
I was wondering if there was any reason why the condition_variable won't accept a unique lock with a recursive mutex. Compiler gives an error when I try to do that:
recursive_mutex rec_mutex; unique_lock ul(rec_mutex); condition_variable condVar; condVar.wait(ul); // <-- compile error saying ul needs tbb::mutex and not tbb::recursive_mutex
using std:shared_ptr with tbb:task
Hello,
what is the right way to use std::shared_ptr with tbb::task? Is it possible or does it make sence? I need to access tbb::task through smart pointer, because the project I'm working on utilizes smart pointers and I don't want to rewrite everything. Here is the modified Fibonacci-example. I get "terminate called after throwing an instance of 'std::bad_weak_ptr'
what(): std::bad_weak_ptr" during the execution.
I'm grateful for every suggestion.
#include "tbb/tbb.h"
#include <iostream>
#include <memory>
using namespace tbb;
parallel_do requires copiable items, and parallel_for_each inherits this limitation
Hi,
suppose we have a container C of objects T, C<T> and T is non-copiable, deriving from boost::noncopiable, and some tbb::parallel_do calls:
C<T> container; tbb::parallel_do(container.begin(), container.end(), ...);
or suppose we have an abstract base class B:
boost::ptr_vector<B> container; tbb::parallel_do(container.begin(), container.end(), ...);
flow graph: limiter_node in v4.1 update1 doesn't work as in previous versions
Hi there!
In the transition from TBB "4.1" to "4.1 Update 1" something seems to have gone wrong.
Attached is a simple test case (inspired by http://software.intel.com/en-us/blogs/2011/09/14/how-to-make-a-pipeline-with-an-intel-threading-building-blocks-flow-graph).
Thread Pool
Hi,
Does TBB create a single Thread pool when linked with 'n' binaries or a thread pool/binary ?
For example I have multiple instances of the same the .dll in my application and this .dll uses tbb, so will there only be one single thread pool?
[SOLVED] TBB, MingW and QtCreator in Windows 7
Hello!
I have compiled TBB 4.1 from source in Windows 7 using the MingW compiler. I got both the debug and release libs: tbb_debug.dll and tbb.dll.
I have also this trivial code to test the installation:
#include "tbb/task_scheduler_init.h"
#include <iostream>
int main(void) {
tbb::task_scheduler_init init;
std::cout << "Ok" << std::endl;
return 0;
}Improved TBB website - http://threadingbuildingblocks.org/
Check out the new, re-designed Intel® TBB website, http://threadingbuildingblocks.org/. Learn about the latest product information, download source code and samples, submit contributions, and much more!
If you have any comments or suggestions, we would love to hear them!
Visual studio 2012 detects memory leak in TBB
Hi,
I'm on Windows 7 x64, Visual C++ Express 2012 Update 1, Win7.1 SDK platform, C++ 32 bit, debug build, using TBB for VC10:
