- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
#include
#include
#include
#define outter 10000000
{
int i,j;
float p[inner],q[inner],x1,x2;
unsigned long BeginTime1,EndTime1;
unsigned long BeginTime2,EndTime2;
for(i=0;i
p=(float)(i*3.14);
q=(float)(i*6.28);
}
x1=0.0;
for(i=0;i
x1 += p*q; /* ... the usual, slow way. */
}
}
EndTime1 = GetTickCount();
x = p0*q0 + p1*q1 + p2*q2 + ... +pn*qn */
for(j=0;j
ippsDotProd_32f( p,q,inner,&x2 );/* Intel optimized... */
}
EndTime2 = GetTickCount();
printf(" (Dot product result: x2 = %f) ",x2);
return 0;
}
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dand123,
could you please also to print out the library version info? Please embedpiece of code like this into your program and give us the results:
#include "ippcore.h"
static void ipps_version(void)
{
int freq;
const IppLibraryVersion* version;
version = ippsGetLibVersion();
printf("IntelippSP library, version:
");
printf("major: %d
",version->major);
printf("minor: %d
",version->minor);
printf("majorBuild: %d
",version->majorBuild);
printf("build: %d
",version->build);
printf("target CPU is <%c%c%c%c>
",
version->targetCpu[0],
version->targetCpu[1],
version->targetCpu[2],
version->targetCpu[3]);
printf("Name: %s
",version->Name);
printf("Version: %s
",version->Version);
printf("BuildDate: %s
",version->BuildDate);
printf("Detected CPU type: %d ",ippCoreGetCpuType());
ippGetCpuFreqMhz(&freq);
printf("Detected CPU freq: %d
",freq);
return;
} /* ipps_version() */
The reason I'm asking that is the different Celeron processors has different processor core, some of the has Pentium 3 core but another has Pentium 4 core.
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
why is it running a px.dll library version, which is an optimizedgeneric c code? celeron 2.4 GHz is still pentium 4 so it should be w7.dll.
detected cpu type is ok (6=ippCpuP4=Pentium 4 processor ):
typedef enum {
/* Enumeration: Processor: */
ippCpuUnknown = 0x0,
ippCpuPP, /* Intel Pentium processor */
ippCpuPMX, /* Pentium processor with MMX technology */
ippCpuPPR, /* Pentium Pro processor */
ippCpuPII, /* Pentium II processor */
ippCpuPIII, /* Pentium III processor */
ippCpuP4, /* Pentium 4 processor */
ippCpuP4HT, /* Pentium 4 Processor with HT Technology */
ippCpuP4HT2,
ippCpuCentrino, /* Intel Centrino mobile technology */
ippCpuITP = 0x10, /* Intel Itanium processor */
ippCpuITP2 /* Itanium 2 processor */
} IppCpuType;
Message Edited by dand123 on 01-09-2004 09:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sts = ippStaticInitCpu(ippCpuP4);
Message Edited by dand123 on 01-10-2004 04:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I managed to link staticaly with w7 library by including ipp*merged.lib, so for now I will stick to that temporary solution. I hope intel premier support will have the answer ready in the near future... Thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ying
Intel IPP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In fact,
it turned out that the user (myself) has had an AMD processorsystem when installed IPP 4.0 Runtime. After that, thesystem waschanged to Intel (new processor, new motherboard, WinXP repair), but IPP's stayed the same (AMD version!). IPP Runtime reinstallation solved the problem (after manually removing the old dlls from windowssystem32ipp20).
![](/skins/images/B7BA37F9CE4B52FF7CAE1FB0388839C8/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page