<?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 GPA 2.1: CreateVertexDeclaration Crash with Multi-Threading in Intel® Graphics Performance Analyzers (Intel® GPA)</title>
    <link>https://community.intel.com/t5/Intel-Graphics-Performance/GPA-2-1-CreateVertexDeclaration-Crash-with-Multi-Threading/m-p/908267#M606</link>
    <description>Following source code crashes gpa v2.1 even if D3DCREATE_MULTITHREADED used.&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[cpp]#pragma omp parallel&lt;BR /&gt;{&lt;BR /&gt;	D3DVERTEXELEMENT9 elem[] =&lt;BR /&gt;	{&lt;BR /&gt;		{0,  0, D3DDECLTYPE_FLOAT3,   D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_POSITION, 0},&lt;BR /&gt;		{0, 12, D3DDECLTYPE_FLOAT3,   D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_NORMAL,   0},&lt;BR /&gt;		{0, 24, D3DDECLTYPE_FLOAT2,   D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_TEXCOORD, 0},&lt;BR /&gt;		D3DDECL_END()&lt;BR /&gt;	};&lt;BR /&gt;&lt;BR /&gt;	#pragma omp for&lt;BR /&gt;	for( int i = 0; i &amp;lt; 1000000; i++ )&lt;BR /&gt;	{&lt;BR /&gt;		IDirect3DVertexDeclaration9* decl = NULL;&lt;BR /&gt;&lt;BR /&gt;		if( FAILED( mpD3DDevice-&amp;gt;CreateVertexDeclaration( elem, &amp;amp;decl ) ) )&lt;BR /&gt;		{&lt;BR /&gt;			*(int*)0 = 0;&lt;BR /&gt;		}&lt;BR /&gt;&lt;BR /&gt;		decl-&amp;gt;Release();&lt;BR /&gt;	}&lt;BR /&gt;}[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;Environment:&lt;BR /&gt;(Intel R GPA System Inspector)&lt;BR /&gt;Windows Vista, 64-bit DEP enabled&lt;BR /&gt;Num Processors: 4&lt;BR /&gt;Memory: 8189MB&lt;BR /&gt;Driver 0:&lt;BR /&gt;Device: ATI Radeon HD 4800 Series &lt;BR /&gt;Provider: ATI Technologies Inc.&lt;BR /&gt;Date: 8-13-2009&lt;BR /&gt;Version: 8.650.0.0&lt;BR /&gt;VendorId: 1002&lt;BR /&gt;ProductId: 9442&lt;BR /&gt;Stepping: 0&lt;BR /&gt;No support for GPA Instrumentation&lt;BR /&gt;GPA install directory: D:Program Files (x86)IntelGPA v2.1&lt;BR /&gt;GPA version: 2.1.74801 (2.1.1.9265)&lt;BR /&gt;</description>
    <pubDate>Mon, 19 Oct 2009 12:42:26 GMT</pubDate>
    <dc:creator>jagoon2</dc:creator>
    <dc:date>2009-10-19T12:42:26Z</dc:date>
    <item>
      <title>GPA 2.1: CreateVertexDeclaration Crash with Multi-Threading</title>
      <link>https://community.intel.com/t5/Intel-Graphics-Performance/GPA-2-1-CreateVertexDeclaration-Crash-with-Multi-Threading/m-p/908267#M606</link>
      <description>Following source code crashes gpa v2.1 even if D3DCREATE_MULTITHREADED used.&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[cpp]#pragma omp parallel&lt;BR /&gt;{&lt;BR /&gt;	D3DVERTEXELEMENT9 elem[] =&lt;BR /&gt;	{&lt;BR /&gt;		{0,  0, D3DDECLTYPE_FLOAT3,   D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_POSITION, 0},&lt;BR /&gt;		{0, 12, D3DDECLTYPE_FLOAT3,   D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_NORMAL,   0},&lt;BR /&gt;		{0, 24, D3DDECLTYPE_FLOAT2,   D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_TEXCOORD, 0},&lt;BR /&gt;		D3DDECL_END()&lt;BR /&gt;	};&lt;BR /&gt;&lt;BR /&gt;	#pragma omp for&lt;BR /&gt;	for( int i = 0; i &amp;lt; 1000000; i++ )&lt;BR /&gt;	{&lt;BR /&gt;		IDirect3DVertexDeclaration9* decl = NULL;&lt;BR /&gt;&lt;BR /&gt;		if( FAILED( mpD3DDevice-&amp;gt;CreateVertexDeclaration( elem, &amp;amp;decl ) ) )&lt;BR /&gt;		{&lt;BR /&gt;			*(int*)0 = 0;&lt;BR /&gt;		}&lt;BR /&gt;&lt;BR /&gt;		decl-&amp;gt;Release();&lt;BR /&gt;	}&lt;BR /&gt;}[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;Environment:&lt;BR /&gt;(Intel R GPA System Inspector)&lt;BR /&gt;Windows Vista, 64-bit DEP enabled&lt;BR /&gt;Num Processors: 4&lt;BR /&gt;Memory: 8189MB&lt;BR /&gt;Driver 0:&lt;BR /&gt;Device: ATI Radeon HD 4800 Series &lt;BR /&gt;Provider: ATI Technologies Inc.&lt;BR /&gt;Date: 8-13-2009&lt;BR /&gt;Version: 8.650.0.0&lt;BR /&gt;VendorId: 1002&lt;BR /&gt;ProductId: 9442&lt;BR /&gt;Stepping: 0&lt;BR /&gt;No support for GPA Instrumentation&lt;BR /&gt;GPA install directory: D:Program Files (x86)IntelGPA v2.1&lt;BR /&gt;GPA version: 2.1.74801 (2.1.1.9265)&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Oct 2009 12:42:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Graphics-Performance/GPA-2-1-CreateVertexDeclaration-Crash-with-Multi-Threading/m-p/908267#M606</guid>
      <dc:creator>jagoon2</dc:creator>
      <dc:date>2009-10-19T12:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: CreateVertexDeclaration Crash</title>
      <link>https://community.intel.com/t5/Intel-Graphics-Performance/GPA-2-1-CreateVertexDeclaration-Crash-with-Multi-Threading/m-p/908268#M607</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Hello,&lt;BR /&gt;&lt;BR /&gt;Thanks for reporting this issue through the support forum for GPA. &lt;BR /&gt;&lt;BR /&gt;However, I'll need your help with a couple of questions before we can track down what might be causing this issue:&lt;OL&gt;
&lt;LI&gt;I'm assuming that you received this error when running System Analyzer, and I'm assuming that the code runs successfully when not running the program with System Analyzer?&lt;/LI&gt;
&lt;LI&gt;You indicated that running this program crashed GPA... did GPA produce an XML "dump file" and/or print an error message (and if so, please include that here)?&lt;/LI&gt;
&lt;LI&gt;Did you build/run this as a 32-bit or 64-bit application?&lt;/LI&gt;
&lt;LI&gt;Did you try the code on devices other that the ATI Radeon you mentioned and/or on other cpu's and/or other versions of Windows (such as 32-bit Vista)?&lt;/LI&gt;
&lt;LI&gt;Does the error occur immediately, or only with large values of the loop index &amp;lt;&lt;STRONG&gt;i&lt;/STRONG&gt;&amp;gt;?&lt;/LI&gt;
&lt;LI&gt;Is there any difference in behavior if you don't use the &lt;STRONG&gt;#pragma &lt;/STRONG&gt;option?&lt;/LI&gt;
&lt;LI&gt;Were you running GPA in single-machine or remote/server mode?&lt;/LI&gt;
&lt;/OL&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Neal</description>
      <pubDate>Mon, 19 Oct 2009 20:33:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Graphics-Performance/GPA-2-1-CreateVertexDeclaration-Crash-with-Multi-Threading/m-p/908268#M607</guid>
      <dc:creator>Neal_Pierman</dc:creator>
      <dc:date>2009-10-19T20:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: CreateVertexDeclaration Crash</title>
      <link>https://community.intel.com/t5/Intel-Graphics-Performance/GPA-2-1-CreateVertexDeclaration-Crash-with-Multi-Threading/m-p/908269#M608</link>
      <description>&lt;DIV style="margin:0px;"&gt;Thanks for reply.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;OL&gt;
&lt;LI&gt;Your assumption is right.&lt;/LI&gt;
&lt;LI&gt;Xmlattached: &lt;A href="http://software.intel.com/file/23167" target="_blank"&gt;http://software.intel.com/file/23167&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;I'm using 32bit application. I tried to run x64 build, but following error message displayed: The profiling of 64-bit applications is not supported.&lt;/LI&gt;
&lt;LI&gt;No. But I have a plan tobuy a new machine which has GMA X4500, and will be able to test with it.&lt;/LI&gt;
&lt;LI&gt;OpenMP's static scheduling shows meaningless result, so I changed it to dynamic scheduling. The variables of i is: 17327, 29471, 13123, 9141, 18948...&lt;/LI&gt;
&lt;LI&gt;Without OpenMP, the source code works fine.&lt;/LI&gt;
&lt;LI&gt;Single Machine.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2009 06:35:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Graphics-Performance/GPA-2-1-CreateVertexDeclaration-Crash-with-Multi-Threading/m-p/908269#M608</guid>
      <dc:creator>jagoon2</dc:creator>
      <dc:date>2009-10-20T06:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: CreateVertexDeclaration Crash</title>
      <link>https://community.intel.com/t5/Intel-Graphics-Performance/GPA-2-1-CreateVertexDeclaration-Crash-with-Multi-Threading/m-p/908270#M609</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I did some more checking, and it ends up that GPA has the following limitation (as documented in the Release Notes for the product): &lt;EM&gt;"Capture may fail, or other errors may occur, when applications use multiple threads to access the Direct3D devices for rendering."&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Since it appears that GPA works with your application when run without multi-threading, the multi-threading limitation would appear to be the underlying reason that GPA cannot instrument/profile your application.&lt;BR /&gt;&lt;BR /&gt;Though this obviously doesn't help you today, I can put in a request to the development team to see if they could support this feature in a future release of GPA.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Neal&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Oct 2009 18:33:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Graphics-Performance/GPA-2-1-CreateVertexDeclaration-Crash-with-Multi-Threading/m-p/908270#M609</guid>
      <dc:creator>Neal_Pierman</dc:creator>
      <dc:date>2009-10-20T18:33:34Z</dc:date>
    </item>
  </channel>
</rss>

