parallel_for_each on std::vector<std::unique_ptr> >


Dear community,

I'm trying to execute a parallel_for_each on a std::vector of unique_ptr.

std::vector<std::unique_ptr<SomeClass> > foo;
  , foo.end()
  , [&] (std::unique_ptr<SomeClass>& singleFoo) { singleFoo -> method();}

However, compiling this code results in an error, because the "implicitly deleted copy constructor" (of the unique_ptr) is called. 

I think the issue is similar to using the following code

Why does compiler generate gather loops when using unsigned array offsets?

I raised this issue in another forum (https://software.intel.com/en-us/forums/software-tuning-performance-opti...), but wanted to see if any of the compiler folks could explain to me why the compiler generates VGATHER-based code whenever I use an unsigned variable as an offset to an array index?

For a simple loop such as

H.264 decoder. Header with non key frame

Have a good time! I have an abnormal situation - some cameras generates the non key frame, but sometimes this camera adds the "extra data" (i.e. header) at the begin of non key frame. The "scenario" is - one frame in given buffer. The MFXVideoDECODE_DecodeHeader() in this case (as in case of I-frame) returns MFX_ERR_NONE as result. But MFXVideoDECODE_DecodeFrameAsync() returns MFX_ERR_INCOMPATIBLE_VIDEO_PARAM. I invoke, as manual recommend, the MFXVideoDECODE_GetVideoParam(), that returns the same values as previous decoded frame, so, it no need to reallocate my frame buffers.

Оптимизация Android-игры mTricks Looting Crown для платформы Intel Atom

When you start to optimize a game, first determine where the application bottleneck is. Intel GPA can help you do this with some powerful analytic tools.If your game is CPU bound, then Intel VTune Amplifier is a helpful tool. If your game is GPU bound, then you can find more detail using Intel GPA.To fix GPU bottlenecks, you can try to find an efficient way of reducing draw calls, polygon count, and render state changes. You can also check the right size of terrain texture, animation objects, light maps, and the right order of z-buffer culling.
  • Developers
  • Android*
  • Android*
  • Graphics Performance Analyzers
  • game optimization
  • Intel GPA
  • cpu
  • GPU
  • Game Development
  • Optimization
  • DecodeFrameAsync seemingly starved of data by ReadNextFrame()


    I just realized that my MSDK code is running slower than it should. My code is basically a transcoder with some object detection between the H.264 decoder and H.264 encoder. The decoder resolution is 1920x1080; the encoder 640x480.

    Right now, it looks like the decoder is slowing things down. So I added some code to measure the performance, like this:

    identifier "__builtin_nanf" is undefined

    I installed evaluation version of Intel® Parallel Studio XE 2016 Cluster Edition Update 1 on Windows 10 with Visual Studio 2015 Update 1 Community Edition. I'm getting compilation errors on Microsoft library files:

    C:\Program Files\Microsoft Visual Studio 14.0\VC\include\limits(1120): error : identifier "__builtin_nanf" is undefined

    I tried /Qstd=c++11 and /Qstd=c++14 compiler options to no effect.


    Application crashes with the use of any optimisation flags. Best way to find out why this occurs?

    Hi everyone,

    When building my application with no optimisation flags in use, the application will run.

    When building the application with any optimisation flags (such as /O1 or /O2 for example), the application will crash at startup.

    Subscribe to Optimization