cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

darkradeon
Adept III

Shader Analyzer wave occupancy view features does not work

Hi, the new Shader Analyzer wave occupancy view features does not work, on shader compilation I got this error:

************** Testo dell'eccezione **************

System.Data.MissingPrimaryKeyException: La tabella non ha una chiave primaria.

   in Client.ShaderAnalyzerForm.cBoxStatsAsic_SelectedIndexChanged(Object sender, EventArgs e)

   in System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)

   in System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)

   in Client.ShaderAnalyzerForm.tabControlBottom_SelectedIndexChanged(Object sender, EventArgs e)

   in System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs e)

   in System.Windows.Forms.TabControl.WmSelChange()

   in System.Windows.Forms.TabControl.set_SelectedIndex(Int32 value)

   in Client.ShaderAnalyzerForm.CompilationFinished()

   in Client.ShaderAnalyzerForm.ParseResult(Object sender, RunWorkerCompletedEventArgs e)

************** Assembly caricati **************

mscorlib

    Versione assembly: 4.0.0.0

    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR

    Base di codice: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

----------------------------------------

GPUPerfClient

    Versione assembly: 3.2.18.0

    Versione Win32: 3.2.18.0

    Base di codice: file:///C:/Users/Alessio/Desktop/GPUPerfStudio3.2.18.0/GPUPerfClient.exe

----------------------------------------

System.Windows.Forms

    Versione assembly: 4.0.0.0

    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR

    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System.Drawing

    Versione assembly: 4.0.0.0

    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR

    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System

    Versione assembly: 4.0.0.0

    Versione Win32: 4.0.30319.34239 built by: FX452RTMGDR

    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

WeifenLuo.WinFormsUI.Docking

    Versione assembly: 2.9.0.0

    Versione Win32: 2.9.0.0

    Base di codice: file:///C:/Users/Alessio/Desktop/GPUPerfStudio3.2.18.0/WeifenLuo.WinFormsUI.Docking.DLL

----------------------------------------

AMD.GDTControls

    Versione assembly: 1.4.173.0

    Versione Win32: 1.4.173.0

    Base di codice: file:///C:/Users/Alessio/Desktop/GPUPerfStudio3.2.18.0/AMD.GDTControls.DLL

----------------------------------------

System.Configuration

    Versione assembly: 4.0.0.0

    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR

    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Xml

    Versione assembly: 4.0.0.0

    Versione Win32: 4.0.30319.34230 built by: FX452RTMGDR

    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

System.Core

    Versione assembly: 4.0.0.0

    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR

    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

----------------------------------------

mscorlib.resources

    Versione assembly: 4.0.0.0

    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR

    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_it_b77a5c561934e089/mscorlib.resources.dll

----------------------------------------

Microsoft.mshtml

    Versione assembly: 7.0.3300.0

    Versione Win32: 7.0.3300.0

    Base di codice: file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll

----------------------------------------

System.Data

    Versione assembly: 4.0.0.0

    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR

    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

System.Windows.Forms.resources

    Versione assembly: 4.0.0.0

    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR

    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll

----------------------------------------

ScintillaNet

    Versione assembly: 2.3.5371.19660

    Versione Win32: 2.3.0.0

    Base di codice: file:///C:/Users/Alessio/Desktop/GPUPerfStudio3.2.18.0/ScintillaNet.DLL

----------------------------------------

System.Numerics

    Versione assembly: 4.0.0.0

    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR

    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

----------------------------------------

System.Data.resources

    Versione assembly: 4.0.0.0

    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR

    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Data.resources.dll

----------------------------------------

This is happen even with simple shaders like:

/* Type definitions. */

struct PixelInput

{

  float4 position : SV_POSITION;

  float4 color : COLOR;

};

/* Pixel shader. */

float4 main( PixelInput input ) : SV_TARGET

{

  return input.color;

}

Hope this helps.

0 Likes
10 Replies
jtrudeau
Staff

I made this a separate discussion, and will make sure the engineering team sees it.

0 Likes
tchiu
Staff

Hi darkradeon,

I'm investigating this issue.

 

Can you give me some repro steps?  I briefly tried the posted shader and don't see this on my system.

   

2 more items that may help me fix this issue.

 

  1. Copy and paste the text from output window.
  2. Check to see what ASICs are detected on test system.  Try to select one ASIC at a time and see if it helps.

  

Thx.

0 Likes

Compiling...

Note: - Shader Analyzer compilation may take a few minutes...

GPUPerfStudioAnalyzer.exe -s hlsl --DXFlags 0 -f main "C:\Users\Alessio\AppData\Local\Temp\GPUPerfStudio\ShaderAnalyzerCache\GSAShaderTmp_6394.hlsl" -p ps_5_0 --isa "C:\Users\Alessio\AppData\Local\Temp\GPUPerfStudio\ShaderAnalyzerCache\GSAShaderTmp_6394.isa" -a "C:\Users\Alessio\AppData\Local\Temp\GPUPerfStudio\ShaderAnalyzerCache\GSAShaderTmp_6394.csv" --DumpMSIntermediate "C:\Users\Alessio\AppData\Local\Temp\GPUPerfStudio\ShaderAnalyzerCache\GSAShaderTmp_6394.asm" -c Tahiti  --DXLocation "C:\Program Files (x86)\AMD\GPU PerfStudio\x86\d3dcompiler_47.dll"

Compiling: 1 of 1 selected ASIC(s).

0 Likes

That's the same as mine.

Can you try a few things?

1.  Run on command prompt, "C:\Program Files (x86)\AMD\GPU PerfStudio\GPUPerfStudioAnalyzer.exe -h -s hlsl"

     - This is to confirm the CLI is working.  This should show CLI help screen.

2.  Can you check this file, "C:\Program Files (x86)\AMD\GPU PerfStudio\x86\d3dcompiler_47.dll", exists on the system? 

3.  Empty temp folder "C:\Users\Alessio\AppData\Local\Temp\GPUPerfStudio\ShaderAnalyzerCache"

     - May be some file got stuck and cannot be overwritten.

4.  Try as administrator.

     - reduce possible folder access issues.

Thanks.

0 Likes

1. Done, it shows the CLI help

2. d3dcompiler_47.dll exits in both x64 and x86 folders

3. Done.

4. Done, but I still got that error at the end of compilation, ISA and D3D-ASM looks ok, but I cannot see the wave occupancy view.

This happens on both my desktop (tahiti) and laptop (capeverde mobile), both are running Windows 8.1 x64. I tried it with catalyst 14.12 WHQL, 14.3.1 beta, 15.4 beta, same result.

0 Likes

Do you get a csv file, like "GSAShaderTmp_6394.csv" in your temp folder, "C:\Users\Alessio\AppData\Local\Temp\GPUPerfStudio\ShaderAnalyzerCache"?  Can you send me this file if available?

Is there any data showing on the Statistics tab on the bottom?  It should show the selected ASIC with several data items.

btw, I'm using 14.12 driver, package version 14.501.1003-141120a-178000C.  I'm on Win 8.1 x64 also.

0 Likes

Yes. I get the csv file. I'll send you all the output in a zip folder.

Edit: see the attachment

0 Likes

I can see a difference here being the CSV file have ";" in place of ",".  I think this may be caused by a locale change.  I believe your system is running a different locale then English.

A few suggestions: -

1. Retry using system locale to ENU-US

2. Try older build of GPS to compare.  I'm puzzle as to why this wasn't a problem before with older builds.  I'm not aware of changes on our side.

3. I can try to hard code the "," output to avoid locale effects.  I need to send you update in this case.

Thanks.

Following up.

Confirmed work around with ENU locale system settings.

Real fix accommodating Non-ENU locale will be in next release.

thank you for the response. I will switch to ENU locale settings for now.

0 Likes