jonathan81

GPU ShaderAnalyser question

Discussion created by jonathan81 on Jul 9, 2008
Latest reply on Jul 9, 2008 by eduardoschardong

Hello,

I have download the new version of GSA 1.43.

I look some examples and i don't understand the result

First example

kernel void sum(float fN, float4 a<>, float4 b<>, out float4 c<>
{
    float f = 0;
    for (f = 0 ; f <  2044; ++f)
   {
       c = a + b;
    }
}

Radeon HD 3870,3,2.00,2.80,2.27,2.00,0.50,2.40,0.42,2.80,0.36,TEX,TEX,TEX,8.00,6.67,5.71,0

 Second Example :

kernel void sum(float fN, float4 a<>, float4 b<>, out float4 c<>
{
    float f = 0;
    for (f = 0 ; f <  2045; ++f)
   {
       c = a + b;
    }
}


Radeon HD 3870,4,2.00,63.75,13.91,13.91,6.95,13.91,5.80,13.91,4.97,ALU,ALU,ALU,1.15,1.15,1.15,0

Why when i add one iteration the Disassembly change and the average increase and register too ???

Thanks in advance

J

Outcomes