<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How correctly to use Parallel Inspector? in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/How-correctly-to-use-Parallel-Inspector/m-p/744480#M1658</link>
    <description>Please, specify which version/build # of Parallel Inspector you were using.</description>
    <pubDate>Wed, 02 Jun 2010 11:43:41 GMT</pubDate>
    <dc:creator>Vladimir_T_Intel</dc:creator>
    <dc:date>2010-06-02T11:43:41Z</dc:date>
    <item>
      <title>How correctly to use Parallel Inspector?</title>
      <link>https://community.intel.com/t5/Software-Archive/How-correctly-to-use-Parallel-Inspector/m-p/744479#M1657</link>
      <description>Good afternoon.&lt;BR /&gt;&lt;BR /&gt;Can You prompting why Parallel 
Inspector shows memory leak in a following example?&lt;BR /&gt;&lt;PRE&gt;[bash]#include "stdafx.h"
#include &lt;WINDOWS.H&gt;
#include &lt;TBB&gt;
#include &lt;TBB&gt;

class SimpleSum 
{
	float* my_a;

public:

	float sum;
	
	void operator( )( const tbb::blocked_range&lt;SIZE_T&gt;&amp;amp; r )
	{
		float *a = my_a;

		for( size_t i=r.begin(); i!=r.end( ); ++i )
			sum += a&lt;I&gt;;
	}

	SimpleSum( SimpleSum&amp;amp; x, tbb::split ) : my_a(x.my_a), sum(0) {}

	void join( const SimpleSum&amp;amp; y )
	{
		sum += y.sum;
	}
	
	SimpleSum(float a[] ) :
	my_a	(a), 
	sum		(0)
	{
	}
};

int _tmain(int argc, _TCHAR* argv[])
{
	UINT	Size = 1000;
	float*	Mass = (float*) _aligned_malloc(Size * sizeof(float), 16 );

	for (UINT i = 0; i &amp;lt; Size; i++)
	{
		Mass&lt;I&gt; = (float) i;
	}

	SimpleSum sf( Mass );

	parallel_reduce( tbb::blocked_range&lt;SIZE_T&gt;(0, Size), sf );

	printf("Result: %f\n", sf.sum);

	_aligned_free( Mass );

	return 0;
}&lt;BR /&gt;&lt;BR /&gt;Errors (level mi4):&lt;BR /&gt;&lt;BR /&gt;ID  Problem Sources Modules Object Size State&lt;BR /&gt;P1  Memory leak parallel_reduce.h TBB_reduce.exe 140 Not fixed&lt;BR /&gt;P2  Memory leak parallel_reduce.h TBB_reduce.exe 40 Not fixed&lt;BR /&gt;P3  Memory leak parallel_reduce.h TBB_reduce.exe 40 Not fixed&lt;BR /&gt;P4  Memory leak parallel_reduce.h TBB_reduce.exe 40 Not fixed&lt;BR /&gt;P5  Memory leak parallel_reduce.h TBB_reduce.exe 140 Not fixed&lt;BR /&gt;P6  Memory leak parallel_reduce.h TBB_reduce.exe 60 Not fixed&lt;BR /&gt;P7  Memory leak parallel_reduce.h TBB_reduce.exe 40 Not fixed&lt;BR /&gt;P8  Memory leak parallel_reduce.h TBB_reduce.exe 40 Not fixed&lt;BR /&gt;P9  Memory leak parallel_reduce.h TBB_reduce.exe 112 Not fixed&lt;BR /&gt;P10  Memory leak parallel_reduce.h TBB_reduce.exe 56 Not fixed&lt;BR /&gt;P11  Memory leak parallel_reduce.h TBB_reduce.exe 56 Not fixed&lt;BR /&gt;P12  Memory leak parallel_reduce.h TBB_reduce.exe 56 Not fixed&lt;BR /&gt;P13  Memory leak parallel_reduce.h TBB_reduce.exe 56 Not fixed&lt;BR /&gt;P14  Memory leak parallel_reduce.h TBB_reduce.exe 84 Not fixed&lt;BR /&gt;P15  Memory leak parallel_reduce.h TBB_reduce.exe 56 Not fixed&lt;BR /&gt;P16  Memory leak parallel_reduce.h TBB_reduce.exe 56 Not fixed&lt;BR /&gt;P17  Memory leak task.cpp tbb_debug.dll 28 Not fixed&lt;BR /&gt;&lt;BR /&gt;[/bash]&lt;/SIZE_T&gt;&lt;/I&gt;&lt;/I&gt;&lt;/SIZE_T&gt;&lt;/TBB&gt;&lt;/TBB&gt;&lt;/WINDOWS.H&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Jun 2010 09:45:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-correctly-to-use-Parallel-Inspector/m-p/744479#M1657</guid>
      <dc:creator>max-divulskiy</dc:creator>
      <dc:date>2010-06-02T09:45:51Z</dc:date>
    </item>
    <item>
      <title>How correctly to use Parallel Inspector?</title>
      <link>https://community.intel.com/t5/Software-Archive/How-correctly-to-use-Parallel-Inspector/m-p/744480#M1658</link>
      <description>Please, specify which version/build # of Parallel Inspector you were using.</description>
      <pubDate>Wed, 02 Jun 2010 11:43:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-correctly-to-use-Parallel-Inspector/m-p/744480#M1658</guid>
      <dc:creator>Vladimir_T_Intel</dc:creator>
      <dc:date>2010-06-02T11:43:41Z</dc:date>
    </item>
    <item>
      <title>How correctly to use Parallel Inspector?</title>
      <link>https://community.intel.com/t5/Software-Archive/How-correctly-to-use-Parallel-Inspector/m-p/744481#M1659</link>
      <description>Intel Parallel Inspector Update 2, (build 75522)&lt;BR /&gt;&lt;BR /&gt;               Inspector.       parallel_reduce    Inspector       TBB- .     parallel_for  pipeline  .                .        Inspector,   parallel_reduce    .&lt;BR /&gt;&lt;BR /&gt;     :&lt;BR /&gt;Notebook MSI GT740&lt;BR /&gt;Core i7 Q720&lt;BR /&gt;Windows 7 x64&lt;BR /&gt;Visual Studio 2008 v.9.0.30729 + Sp1&lt;BR /&gt;&lt;BR /&gt;     Inspector-,      i7,  .&lt;BR /&gt;&lt;BR /&gt;   .&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jun 2010 17:41:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-correctly-to-use-Parallel-Inspector/m-p/744481#M1659</guid>
      <dc:creator>max-divulskiy</dc:creator>
      <dc:date>2010-06-02T17:41:19Z</dc:date>
    </item>
    <item>
      <title>How correctly to use Parallel Inspector?</title>
      <link>https://community.intel.com/t5/Software-Archive/How-correctly-to-use-Parallel-Inspector/m-p/744482#M1660</link>
      <description>Inspector'.      .&lt;DIV&gt;,     .&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Jun 2010 08:07:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-correctly-to-use-Parallel-Inspector/m-p/744482#M1660</guid>
      <dc:creator>Vladimir_T_Intel</dc:creator>
      <dc:date>2010-06-03T08:07:22Z</dc:date>
    </item>
  </channel>
</rss>

