Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Thomas_Jensen1
Beginner
58 Views

IPP 6.1 Update 5, no S8, but new G9?

Just installed IPP 6.1 Update 5.

Since I use custom DLL with custom dispatching, I wanted to check the new S8 (Atom) cpu code.
Turns out ippimerged_t.lib does not contain any S8 code.
Also, the sample Linkage/MergedLib does not contain any references to S8.

In the Bin folder however, is a file ippis8-6.1.dll, obviously with S8 code.

Also, looking into ippimerged_t.lib, I see a new cpu code "g9".

Conclusions:

- ippmerged.c must be updated with S8 code.
- g9 in ippimerged_t.lib must be documented
- Is g9=s8 ?
- userguide_win_ia32.pdf must be updated.

0 Kudos
6 Replies
matthieu_darbois
New Contributor III
58 Views

Hi,

If I'm not mistaken, I think I read somewhere that g9 is code for AVX extensions.

Regards,
Matthieu
Thomas_Jensen1
Beginner
58 Views

Later, I did find a reference to S8 (Atom) in userguide_win_ia32.pdf.
Still, I cannot find out how to enable support for Atom-optimized code.
PaulF_IntelCorp
Employee
58 Views

The s8 library (Atom-optimized) is not present in the static libraries, only in the dynamic libraries. However, IPP applications built with the static library will run on an Atom processor with very good to equivalent performance using the v8 library (which is automatically selected, so you don't need to do anything special for an Atom).

The fundamental difference between the v8 and s8 libraries are the compiler options used to build them, which accommodates the differences in the pipelines between the two processors. My understanding is that if the processor is very busy the differences in the pipeline architecture is not that significant. Since the IPP functions tend to keep the processor busy, these two variations in the library (v8 and s8)give nearly identical performance on an Atom. Also, the s8 version of the IPP library does not use any Atom-unique instructions, so nothing is lost there by using the v8 slice.

See this article for more info regarding the library slices:

Understanding CPU Dispatching in the Intel IPP Library

Paul

p.s. "g9" does refer to the AVX instruction set.
j_miles
Beginner
58 Views

I was puzzled by the same findings as Thomas. Thanks for a good explanation, Paul. Seems valid that the documentation should be updated to reflect what you wrote.

Thanks.


- Jay
Thomas_Jensen1
Beginner
58 Views

Since I use a custom DLL with my own custom cpu dispatching code, Dynamic library mechanics are not available to me.

I have created a dll with common code, and with a cpu dispatcher, loading a cpu-specific dll, containing only a subset of IPP.

I do this to create the smallest footprint, as loading time from a network share is important.

I then link in two IPP cores, one static unthreaded in the first dll, to be able to have it detect the cpu type. After having detected the cpu, I dynamically load my second dll, with single cpu code in it. This second dll also contains an IPP core, but this time, it statically links to the threaded libraries, in which I have it link directly to _v8_ippCopy_xxx() etc. Since I link directly, I really must known what cpu prefix (px_, w7_, etc) I must link to.

Therefore, it is important that I know what code an Atom should use, and also what g9_ means.

Maybe this is a call for Intel to supply me/us with a framework to create new dynamic IPP dlls with only a specified subset. With that, I wouldn't have to do it myself, and I'd be content with the smaller footprint.
PaulF_IntelCorp
Employee
58 Views

Hello Thomas,

Very good feedback. Thanks.

Note that I've updated the article mentioned above to provide some additional information regarding the prefixes and the Atom processor.

Paul
Reply