Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Amol_A_
Beginner
48 Views

Is there any initialization API to achieve high performance depending on the processor type?

Hi ,

Is there any initialization API to achieve high performance depending on the processor type in intel media SDK?

Just as in IPP, we use ippinit() api which detects the processor type used in the system to initialize processor specific static code, similarly is there any such API in Intel Media SDK or not?

Regards

Amol

0 Kudos
2 Replies
OTorg
New Contributor II
48 Views

Processor type and processor-specific code branches are automatically detected/applied by IMSDK.

CPU/GPU-implementation selecting is the responsibility of the programmer.

Jeffrey_M_Intel1
Employee
48 Views

Just to add a little to dj_alek's excellent response, the session implementation enum used in MFXInit (or Init from the MFXVideoSession class) is similar to ippInit.  If you specify MFX_IMPL_AUTO_ANY the session will use GPU HW acceleration if available on any any adapter, software if not.  In general, HW acceleration will be better performance than the SW implementation.  As with ippInitCpu, more control is there if you want it -- for example to force running in software even when the processor is capable of HW acceleration.  Within the CPU implementation processor-specific optimizations are chosen automatically.  However, the biggest performance "switch" is HW vs. SW.

Reply