Intel® Threading Building Blocks

Problem----std::bad_alloc at memory location 0x0012fc4c

I hadsome applicationsusing tbb.They work on my oldcomputer which hasduo cores.
While some of them do not work on my new computer which has eight cores.
The new computer has bigger memory than old one.
I 'm wonderinghow this memory problem comes.

"Main_iterate_fitting_parallel_128.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012fc4c.."

Any suggestion will be welcome.

Experiments with TBB and IO, large memory footprints

This post is a description of some experiences and experiments that I performed, while using TBB to parallelize part of a large bio-informatics genome assembly program, specifically large amounts of disk I/O and large memory footprints. I invite any and all feedback relating similar experiences, criticisms of methodology or conclusions. I know it's long,

Pipeline class and cache


We are working on a multi core packet processing application. The architecture is roughly as outlined in the routing application example found in the O Reilly book with some minor variations.

Here is a rough outline of the 2 pipeline architecture.

1. Raw packet processor pipeline

Raw packets --> (parallel pipeline stages) ---> State update commands (into concurrent_queue)

2. User application pipeline

State update commands (from concurrent_queue) ---> (parallel pipeline stages) ---> Updated application state

Converting Winthread to Intel tbb

Its possible to convert this code im current using in my program to Intel tbb?

Current using:


#ifndef _THREAD_H_
#define _THREAD_H_

#ifdef _WIN32
#define THREAD_RETURN void*
#error unsupported platform (no pthreads?)

// Don't include common.h here as it will break LogManager
#include "CommonTypes.h"

speed up

if i run a piece of code serially, and then parallelize it with TBB and run it... both times on a dual core system, what is the maximum speed-up that can be acheived?(or, is there any such "maximum speedup possible" theoretically?) theoretically, since both cores are being utilized in the parallel run, is it 2X?

Subscribe to Intel® Threading Building Blocks