Quantcast
Channel: Intel® Integrated Performance Primitives
Viewing all articles
Browse latest Browse all 1294

ipp lead to decrease performance

$
0
0

hi

i have a system with 15 -750 cpu and windows 8.1 and I use IPP8.2 .

my program have a greate number Array Mul ,Div or sqrt.

i write a small code with ipp and use both ippm and ipps for mul array and compare that code performance with my simple array mul.

my code is this:

/-------------------------------------------------------------

    Ipp64f* src=new Ipp64f[200]();
    for(int i=0;i<200;i++)
    {
        src[i]=i; // initialize source array with values
    }
    Ipp64f* res=new Ipp64f[200]();

    double t1=GetTickCount();
    for(int k=0;k<5000000;k++)
    {
        ippsMulC_64f(src,2,res,200);
    }
    double t2=GetTickCount();

    double Ipp_Mul_Time=t2-t1;

    for(int k=0;k<5000000;k++)
    {
        for(int i=0;i<200;i++)
        {
            res[i]=src[i]*2;
        }
    }
    double t3=GetTickCount();
  
    double MyMulTime=t3-t2;

//------------------------------------------------------------------------------------

i run this test program and in every test my simple Mul is faster than IPP Mul

i test this program for both small and big arrays and get same result.

i think that i can improve my progarm performance with intel ipp but it happend.

is exist a problem in my test code that lead to this abnormal behavor? or my test result is correct?


Viewing all articles
Browse latest Browse all 1294

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>