tbb

TBB memory leaks when using inside of MFC application

怎甘沉沦 提交于 2019-12-11 07:45:46
问题 Hello stackoverflower, Operation system: Windows 7 x64 SP1; TBB version: 4.2.0; Compiler: Visual Studio 2012. Problem description: TBB dumps memory leaks on the exit of MFC application. The same code doesn't dump any leaks, when used from simple command line program. It looks like a DLL unload order problem. Due to late tbb.dll unloading the debuger dumps some static variables as leaks. Can someone confirm this issue? Is there any work around? I also posted this question to Intel forum. There

tbb::concurrent_vector returns wrong size

不问归期 提交于 2019-12-11 06:13:09
问题 I've asked this question on a TBB forum, but I'm hoping someone here might have some additional thoughts. I was debugging an issue we're seeing and noticed some strange behavior from tbb::concurrent_vector . The bottom line is that after a push_back() call actually completes, the size() of the concurrent_vector does not reflect this. I've narrowed it down to be capacity related because if I capture capacity() and size() , size() == capacity() => true which leads me to believe that size() is

TBB concurrent_queue errors

北慕城南 提交于 2019-12-11 05:36:49
问题 Can't seem to compile program with even a mention of concurrent_queue. code contains this #include <tbb/concurrent_queue.h> And second I add anywhere in the code concurrent_queue<int> tbbqueue; This is the error I get on compile. I am able to compile some other tbb related code using tasks etc, but this for some reason is not working. g++ -O3 -Wall -pthread -std=c++11 -ltbb -o tbbqueue.o tbbqueue.cpp tbbqueue.cpp: In function ‘void* Agent(void*)’: tbbqueue.cpp:46:10: warning: unused variable

OpenCV configure with TBB for ARM (Ubuntu, 3.0.63)

守給你的承諾、 提交于 2019-12-11 03:34:43
问题 I'm trying to compile OpenCV libs with TBB support for odroid U2 (with Quad core ARM Cortex-A9 MPCore). I have no problem with compile current OpenCV (from github) without TBB. And also I have no problem with compiling TBB libs fron sources - tbb41_20130116oss_src.tgz and I have successfully builded TBB libs: root@odroid:~/src/tbb41_20130116oss/build/linux_armv7l_gcc_cc4.6_libc2.15_kernel3.0.63_release# ls arena.d concurrent_queue.o frontend.d libtbbmalloc.so.2 proxy.d scheduler.o task_v2.d

Is there a way to disable TBB in openCV?

一曲冷凌霜 提交于 2019-12-11 01:12:08
问题 The C-code(using openCV) I have seems to use TBB and I want to compare the performance with the one that does not use TBB. Is there a way to disable TBB? 回答1: Try setNumThreads(0), or for a more thorough solution, try recompiling the libraries as described here. 来源: https://stackoverflow.com/questions/18478159/is-there-a-way-to-disable-tbb-in-opencv

unable to link Intel TBB library with libtbb in /usr/lib

风流意气都作罢 提交于 2019-12-10 23:37:41
问题 I downloaded the pre built headers and libraries for Intel TBB from Intel's TBB website. I updated ldconfig to add the tbb shared library to /usr/lib. However on compiling with -tbb the code using g++ ld returns -1 as it is unable to find libtbb libtbb.so.2 is present in /usr/lib/ here is my full g++ output g++ hellotbb.cpp -o htbb -I$HOME/libs/tbb43/include -v -ltbb Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper Target: x86_64-linux

How to check how many threads are currently running when using TBB?

谁说我不能喝 提交于 2019-12-10 22:59:46
问题 I am running Intel TBB on clusters. However, I don't know how to check how many threads are active and running. Is there a way to check this? Let's say I have 16 cores, so I would like to know if all 16 cores are now being used in my TBB code. This would make sure there is no problem with my system. 回答1: I would like to know if all 16 cores are now being used in my TBB code. It is right to assume that requesting or expecting a number of threads in TBB is not always results in this number of

TBB concurrent_vector with openmp

我们两清 提交于 2019-12-10 19:37:23
问题 Can we use TBB concurrent_vector with openmp? Will concurrent updates be allowed? 回答1: Yes, TBB's concurrent data structures are meant to be thread-safe, which means whatever threading paradigms, such as OpenMP, TBB, Cilk, PPL, and etc, are okay to use TBB's concurrent data structures. This is because concurrent_vector is simply a data structure class rather than threading-related control code. Furthermore, TBB's mutex can be also used within OpenMP, Cilk, and PPL. 回答2: Per Section 1.11 of

tbb::cache_aligned_allocator: Getting “request for member…which is of non-class type” with __m128i. User error or bug?

你说的曾经没有我的故事 提交于 2019-12-10 18:57:01
问题 I'm trying to use __m128i as the value type of a cache-aligned vector with GCC, and I'm getting the following error: /usr/include/tbb/cache_aligned_allocator.h:105:32: error: request for member ‘~tbb::cache_aligned_allocator<__vector(2) long long int>::value_type’ in ‘* p’, which is of non-class type ‘tbb::cache_aligned_allocator<__vector(2) long long int>::value_type {aka __vector(2) long long int}’ The compiler traces it to the following line in tbb/cache_aligned_allocator.h: void destroy(

Installing Intel's TBB 3.0 framework on MacOS 10.6 (Snow Leopard)

风流意气都作罢 提交于 2019-12-10 18:33:24
问题 I'm having a bit of trouble installing Intel's Threading Building Blocks (TBB) 3.0 as a framework on my MacOS system. Does anyone know a good tutorial? I've tried using MacPorts, which has TBB 2.2: it installs all the libraries I need, but I don't get a framework. Also, there doesn't seem to have any .dmg installation file on Intel's site that could provide this framework. All the download files are zipped files containing the src code or the binaries. Any ideas? Thanks! 回答1: There is a