Quantcast
Channel: Intel® Software - Intel® Integrated Performance Primitives
Viewing all articles
Browse latest Browse all 1489

IPP initialization issue with .NET

$
0
0

When I run this code, 7 is written to the console (SSE 2 is enabled). If I run some FFT methods and re-run initialization, I get 3295 (SSE 4.2). What can I do to get consistent results from this API?

I am using .NET 4.0 with P/Invoke signatures for all methods used below:

class Program
{
static void Main(string[] args)
{
IppCpuType cpuType = core.ippGetCpuType();
core.ippInitCpu(cpuType);
if (cpuType == IppCpuType.ippCpuAVX)
core.ippEnableCpu(cpuType);

core.ippInit();

ulong features = core.ippGetEnabledCpuFeatures();

Console.WriteLine(features);
}
}

Thank you,
Greg Chernis


Viewing all articles
Browse latest Browse all 1489

Trending Articles