Code: Select all
decompression linux-2.6.23.tar.bz2
CC CFLAGS time 1 time 2 time 3 time avg
icc "-O2 -xT -parallel -gcc" 20.970 20.917 21.037 20.975
icc "-O2 -xT -gcc" 21.384 22.115 21.346 21.615
icc "-O3 -xT -parallel -gcc" 22.298 21.682 22.643 22.208
icc "-O3 -xT -gcc" 21.543 21.465 21.938 21.649
icc "-fast -xT -parallel -gcc" 21.583 21.818 21.584 21.662
icc "-fast -xT -gcc" 21.645 21.383 22.042 21.690
gcc "-O2 -march=nocona" 21.221 21.620 21.376 21.406
gcc "-O3 -march=nocona" 21.076 21.170 20.956 21.067
gcc "-Os -march=nocona" 21.712 21.492 21.848 21.684Code: Select all
compression linux-2.6.23.tar.bz2
CC CFLAGS time 1 time 2 time 3 time avg
icc "-O2 -xT -parallel -gcc" 48.751 48.191 48.592 48.511
icc "-O2 -xT -gcc" 47.452 48.208 47.969 47.876
icc "-O3 -xT -parallel -gcc" 48.633 48.822 47.827 48.427
icc "-O3 -xT -gcc" 46.851 48.087 48.295 47.744
icc "-fast -xT -parallel -gcc" 49.289 49.789 49.199 49.426
icc "-fast -xT -gcc" 49.200 49.467 49.441 49.369
gcc "-O2 -march=nocona" 51.830 53.395 52.037 52.421
gcc "-O3 -march=nocona" 52.073 53.426 52.331 52.610
gcc "-Os -march=nocona" 50.256 51.365 51.464 51.028
This article says something about icc and gcc.AM088 wrote:Thanks, that looks interesting.
Is the change in performance noticeable, though? For example, if I bzip an archive or encode a video in x264, how much faster would it be than if I use gcc 4.1 on a Core2 processor?
Code: Select all
icc -O2 -xP -gcc -o .libs/faac main.o input.o ../libfaac/.libs/libfaac.so -lm /usr/lib/libmp4v2.so -ldl
ld: .libs/faac: hidden symbol `__svml_sin2' in /opt/intel/cc/10.1.012/lib/libsvml.a(svml_dsin2.o) is referenced by DSO
ld: final link failed: Nonrepresentable section on output
make[2]: *** [faac] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/faac-1.26-r1/work/faac/frontend'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/faac-1.26-r1/work/faac'
make: *** [all] Error 2Code: Select all
ld: .libs/decoder_example: hidden symbol `__svml_cosf4' in /opt/intel/cc/10.1.012/lib/libsvml.a(svml_scos4.o) is referenced by DSO
ld: final link failed: Nonrepresentable section on output
make[2]: *** [decoder_example] Error 1
ld: .libs/chaining_example: hidden symbol `__svml_cosf4' in /opt/intel/cc/10.1.012/lib/libsvml.a(svml_scos4.o) is referenced by DSO
ld: final link failed: Nonrepresentable section on output
make[2]: *** [chaining_example] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/libvorbis-1.2.0/work/libvorbis-1.2.0/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/libvorbis-1.2.0/work/libvorbis-1.2.0'
make: *** [all] Error 2Code: Select all
-march=pentium4 -xW -O2 -ip -gccCode: Select all
No running windows found
/usr/libexec/mozilla-launcher: line 119: 2513 Segmentation fault $(type -P aoss) "$mozbin" $xulparams "$@"
firefox-bin exited with non-zero status (139)Since -xW is the same thing as as -march=pentium4 I don't see the point in setting both flags.-xW -- Can generate SSE2 and SSE instructions, and it can optimize for Intel(R) Pentium(R) 4 processors and
Intel(R) Xeon(R) processors with SSE2. This is the default on Linux systems using Intel(R) 64 architecture. This
option is the same as specifying -march=pentium4.
Oops, that's all about reading the docs. Anyway, it seems that using -ipo or -ip if -ipo fails gives a huge boost. I generally try to compile packages with -ipo, and if it fails I switch back to -ip.deno wrote:@paluszak
From icc man page:
Since -xW is the same thing as -march as -march=pentium4 I don't the point in setting both flags.-xW -- Can generate SSE2 and SSE instructions, and it can optimize for Intel(R) Pentium(R) 4 processors and
Intel(R) Xeon(R) processors with SSE2. This is the default on Linux systems using Intel(R) 64 architecture. This
option is the same as specifying -march=pentium4.
What are your CFLAGS? Both of these packages compile cleanly with "-O3 -ipo -xT -gcc" on my AMD64 system.deno wrote:Here faac fails with error:Any suggestions on how could i solve this?Code: Select all
icc -O2 -xP -gcc -o .libs/faac main.o input.o ../libfaac/.libs/libfaac.so -lm /usr/lib/libmp4v2.so -ldl ld: .libs/faac: hidden symbol `__svml_sin2' in /opt/intel/cc/10.1.012/lib/libsvml.a(svml_dsin2.o) is referenced by DSO ld: final link failed: Nonrepresentable section on output make[2]: *** [faac] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-libs/faac-1.26-r1/work/faac/frontend' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-libs/faac-1.26-r1/work/faac' make: *** [all] Error 2
edit:
same(?) happens witg libtheora. error:Code: Select all
ld: .libs/decoder_example: hidden symbol `__svml_cosf4' in /opt/intel/cc/10.1.012/lib/libsvml.a(svml_scos4.o) is referenced by DSO ld: final link failed: Nonrepresentable section on output make[2]: *** [decoder_example] Error 1 ld: .libs/chaining_example: hidden symbol `__svml_cosf4' in /opt/intel/cc/10.1.012/lib/libsvml.a(svml_scos4.o) is referenced by DSO ld: final link failed: Nonrepresentable section on output make[2]: *** [chaining_example] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-libs/libvorbis-1.2.0/work/libvorbis-1.2.0/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-libs/libvorbis-1.2.0/work/libvorbis-1.2.0' make: *** [all] Error 2
now even if recompile freetype with gcc i get this error compiling splashutils:gcc -march=prescott -O2 -pipe -fomit-frame-pointer -I/usr/include/freetype2 -L/usr/lib -o fbtruetype -L/usr/lib fbtruetype.o messages.o console.o ttf.o luxisri.o -lfreetype -lm
gcc -march=prescott -O2 -pipe -fomit-frame-pointer -I/usr/include/freetype2 -L/usr/lib -static -o fbtruetype.static -L/usr/lib fbtruetype.o messages.o console.o ttf.o luxisri.o /usr/lib/libfreetype.a /usr/lib/libz.a -lm
ttf.o: In function `Find_Glyph':
ttf.c:(.text+0x13c): undefined reference to `FT_Load_Glyph'
ttf.c:(.text+0x278): undefined reference to `FT_Render_Glyph'
ttf.c:(.text+0x3e9): undefined reference to `FT_Get_Char_Index'
ttf.c:(.text+0x409): undefined reference to `FT_Render_Glyph'
ttf.c:(.text+0x456): undefined reference to `FT_Outline_Transform'
ttf.o: In function `TTF_CloseFont':
ttf.c:(.text+0xc29): undefined reference to `FT_Done_Face'
ttf.o: In function `TTF_OpenFontIndex':
ttf.c:(.text+0xc96): undefined reference to `FT_New_Face'
ttf.c:(.text+0xccc): undefined reference to `FT_New_Memory_Face'
ttf.c:(.text+0xd2b): undefined reference to `FT_Set_Char_Size'
ttf.c:(.text+0xd48): undefined reference to `FT_MulFix'
ttf.c:(.text+0xd69): undefined reference to `FT_MulFix'
ttf.c:(.text+0xd98): undefined reference to `FT_MulFix'
ttf.c:(.text+0xdba): undefined reference to `FT_MulFix'
ttf.c:(.text+0xdd9): undefined reference to `FT_MulFix'
ttf.c:(.text+0xe44): undefined reference to `FT_Done_Face'
ttf.c:(.text+0xe61): undefined reference to `FT_New_Face'
ttf.o: In function `TTF_Quit':
ttf.c:(.text+0x103d): undefined reference to `FT_Done_FreeType'
ttf.o: In function `TTF_Init':
ttf.c:(.text+0x105a): undefined reference to `FT_Init_FreeType'
collect2: ld returned 1 exit status
make[1]: *** [fbtruetype.static] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/splashutils-1.5.3.4/work/miscsplashutils-0.1.8/fbtruetype'
make: *** [all] Error 2
...what is here strange to me is that i see intel mentioned again... could ccache have something to do with it?Making all in src
CREATE fbsplash.h
Making all in .
In file included from common.h:4,
from mng_callbacks.c:15:
../config.h:51:1: warning: "HAVE_STDLIB_H" redefined
In file included from /usr/include/jpeglib.h:28,
from /usr/include/libmng_types.h:192,
from /usr/include/libmng.h:379,
from mng_callbacks.c:12:
/usr/include/jconfig.h:12:1: warning: this is the location of the previous definition
In file included from common.h:4,
from mng_render.c:17:
../config.h:51:1: warning: "HAVE_STDLIB_H" redefined
In file included from /usr/include/jpeglib.h:28,
from /usr/include/libmng_types.h:192,
from /usr/include/libmng.h:379,
from mng_render.c:15:
/usr/include/jconfig.h:12:1: warning: this is the location of the previous definition
/usr/lib/libpng12.a(libpng12_la-png.o): In function `png_info_destroy':
(.text+0x267): undefined reference to `_intel_fast_memset'
/usr/lib/libpng12.a(libpng12_la-png.o): In function `png_destroy_info_struct':
(.text+0x7ac): undefined reference to `_intel_fast_memset'
/usr/lib/libpng12.a(libpng12_la-png.o): In function `png_create_info_struct':
(.text+0x800): undefined reference to `_intel_fast_memset'
/usr/lib/libpng12.a(libpng12_la-png.o): In function `png_sig_cmp':
(.text+0x945): undefined reference to `_intel_fast_memcmp'
/usr/lib/libpng12.a(libpng12_la-png.o): In function `png_check_sig':
(.text+0x9ce): undefined reference to `_intel_fast_memcmp'
/usr/lib/libpng12.a(libpng12_la-png.o): In function `png_info_init':
(.text+0xa46): undefined reference to `_intel_fast_memset'
/usr/lib/libpng12.a(libpng12_la-png.o): In function `png_info_init_3':
(.text+0xa82): undefined reference to `_intel_fast_memset'
/usr/lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_destroy.':
(.text+0x1642): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_destroy.':
(.text+0x166e): undefined reference to `_intel_fast_memset'
/usr/lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_destroy.':
(.text+0x169d): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_init':
(.text+0x207d): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_init':
(.text+0x2099): undefined reference to `_intel_fast_memset'
/usr/lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_init':
(.text+0x20a9): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_init_2':
(.text+0x21f7): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_init_2':
(.text+0x2221): undefined reference to `_intel_fast_memset'
/usr/lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_init_2':
(.text+0x2231): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_init_3':
(.text+0x240c): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_init_3':
(.text+0x243e): undefined reference to `_intel_fast_memset'
/usr/lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_init_3':
(.text+0x244e): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngrtran.o): In function `png_set_dither':
(.text+0x4448): undefined reference to `__intel_VEC_memzero'
/usr/lib/libpng12.a(libpng12_la-pngrtran.o): In function `png_set_dither':
(.text+0x4467): undefined reference to `__intel_VEC_memset'
/usr/lib/libpng12.a(libpng12_la-pngrtran.o): In function `png_build_gamma_table.':
(.text+0x5069): undefined reference to `__libm_sse2_pow'
/usr/lib/libpng12.a(libpng12_la-pngrtran.o): In function `png_build_gamma_table.':
(.text+0x5248): undefined reference to `__libm_sse2_pow'
/usr/lib/libpng12.a(libpng12_la-pngrtran.o): In function `png_build_gamma_table.':
(.text+0x538b): undefined reference to `__libm_sse2_pow'
/usr/lib/libpng12.a(libpng12_la-pngrtran.o): In function `png_build_gamma_table.':
(.text+0x54af): undefined reference to `__libm_sse2_pow'
/usr/lib/libpng12.a(libpng12_la-pngrtran.o): In function `png_build_gamma_table.':
(.text+0x55dc): undefined reference to `__libm_sse2_pow'
/usr/lib/libpng12.a(libpng12_la-pngrtran.o):(.text+0x56a2): more undefined references to `__libm_sse2_pow' follow
/usr/lib/libpng12.a(libpng12_la-pngmem.o): In function `png_memset_check':
(.text+0x47): undefined reference to `_intel_fast_memset'
/usr/lib/libpng12.a(libpng12_la-pngmem.o): In function `png_memcpy_check':
(.text+0x5d): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngmem.o): In function `png_create_struct_2':
(.text+0x197): undefined reference to `_intel_fast_memset'
/usr/lib/libpng12.a(libpng12_la-pngmem.o): In function `png_create_struct_2':
(.text+0x1c6): undefined reference to `_intel_fast_memset'
/usr/lib/libpng12.a(libpng12_la-pngmem.o): In function `png_create_struct':
(.text+0x206): undefined reference to `_intel_fast_memset'
/usr/lib/libpng12.a(libpng12_la-pngrutil.o): In function `png_do_read_interlace':
(.text+0x10c0): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngrutil.o): In function `png_do_read_interlace':
(.text+0x10e3): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngrutil.o): In function `png_combine_row':
(.text+0x14aa): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngrutil.o): In function `png_combine_row':
(.text+0x15ee): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngrutil.o): In function `png_decompress_chunk.':
(.text+0x1d67): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngrutil.o):(.text+0x1d8f): more undefined references to `_intel_fast_memcpy' follow
/usr/lib/libpng12.a(libpng12_la-pngset.o): In function `png_set_PLTE':
(.text+0x135c): undefined reference to `_intel_fast_memset'
/usr/lib/libpng12.a(libpng12_la-pngset.o): In function `png_set_PLTE':
(.text+0x1370): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngset.o): In function `png_set_pCAL':
(.text+0x147d): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngset.o): In function `png_set_pCAL':
(.text+0x14eb): undefined reference to `_intel_fast_memcpy'
/usr/lib/libpng12.a(libpng12_la-pngset.o): In function `png_set_pCAL':
(.text+0x156c): undefined reference to `_intel_fast_memcpy'
collect2: ld returned 1 exit status
make[4]: *** [splash_util.static] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Code: Select all
>>> Emerging (1 of 1) app-arch/cpio-2.9-r1 to /
[snip]
if icc -c99 -DHAVE_CONFIG_H -I. -I. -I.. -MT argp-parse.o -MD -MP -MF ".deps/argp-parse.Tpo" -c -o argp-parse.o argp-parse.c; \
then mv -f ".deps/argp-parse.Tpo" ".deps/argp-parse.Po"; else rm -f ".deps/argp-parse.Tpo"; exit 1; fi
icc: command line remark #10010: option '-c99' is deprecated and will be removed in a future release. See '-help deprecated'
icc: command line remark #10010: option '-c99' is deprecated and will be removed in a future release. See '-help deprecated'
/usr/include/gentoo-multilib/amd64/limits.h(125): catastrophic error: could not open source file "limits.h"
# include_next <limits.h>
^
compilation aborted for argp-eexst.c (code 4)
/usr/include/gentoo-multilib/amd64/limits.h(125): catastrophic error: could not open source file "limits.h"
# include_next <limits.h>
^
compilation aborted for argp-help.c (code 4)
make[3]: *** [argp-eexst.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [argp-help.o] Error 1
/usr/include/gentoo-multilib/amd64/limits.h(125): catastrophic error: could not open source file "limits.h"
# include_next <limits.h>
^
compilation aborted for argp-parse.c (code 4)
make[3]: *** [argp-parse.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-arch/cpio-2.9-r1/work/cpio-2.9/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/app-arch/cpio-2.9-r1/work/cpio-2.9/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-arch/cpio-2.9-r1/work/cpio-2.9'
make: *** [all] Error 2
Code: Select all
gcc-config x86_64-pc-linux-gnu-4.2.3

deno wrote:Here faac fails with error:Any suggestions on how could i solve this?Code: Select all
icc -O2 -xP -gcc -o .libs/faac main.o input.o ../libfaac/.libs/libfaac.so -lm /usr/lib/libmp4v2.so -ldl ld: .libs/faac: hidden symbol `__svml_sin2' in /opt/intel/cc/10.1.012/lib/libsvml.a(svml_dsin2.o) is referenced by DSO ld: final link failed: Nonrepresentable section on output make[2]: *** [faac] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-libs/faac-1.26-r1/work/faac/frontend' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-libs/faac-1.26-r1/work/faac' make: *** [all] Error 2
edit:
same(?) happens witg libtheora. error:Code: Select all
ld: .libs/decoder_example: hidden symbol `__svml_cosf4' in /opt/intel/cc/10.1.012/lib/libsvml.a(svml_scos4.o) is referenced by DSO ld: final link failed: Nonrepresentable section on output make[2]: *** [decoder_example] Error 1 ld: .libs/chaining_example: hidden symbol `__svml_cosf4' in /opt/intel/cc/10.1.012/lib/libsvml.a(svml_scos4.o) is referenced by DSO ld: final link failed: Nonrepresentable section on output make[2]: *** [chaining_example] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-libs/libvorbis-1.2.0/work/libvorbis-1.2.0/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-libs/libvorbis-1.2.0/work/libvorbis-1.2.0' make: *** [all] Error 2

Code: Select all
icc -pthread -fno-strict-aliasing -O2 -march=native -fomit-frame-pointer -pipe -D_SAMBA_BUILD_=3 -fPIC -I/usr/include/python2.5 -c -I/usr/include/python2.5 -c python/py_spoolss.c -o build/temp.linux-i686-2.5/python/py_spoolss.o -O2 -march=native -fomit-frame-pointer -pipe -D_SAMBA_BUILD_=3 -DHAVE_CONFIG_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED -O2 -march=native -fomit-frame-pointer -pipe -D_SAMBA_BUILD_=3 -I/var/tmp/portage/net-fs/samba-3.0.30/work/samba-3.0.30/source/iniparser/src -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED -I/var/tmp/portage/net-fs/samba-3.0.30/work/samba-3.0.30/source/lib -D_SAMBA_BUILD_=3
icc: command line error: invalid argument for option '-m'
error: command 'icc' failed with exit status 1
make: *** [python_ext] Error 1
Code: Select all
$ grep CFLA /etc/make.conf
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"
ICCCFLAGS="-O2 -xT -ip -gcc"
ICCCXXFLAGS="${ICCCFLAGS}"