SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH [email protected] | January...
Transcript of SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH [email protected] | January...
January 19, 2005
SGI® Altix™Introduction to Intel Compilers
Reiner VogelsangSGI GmbH
January 19, 2005 Page 2| |
Objectives
• After completion you understand –some fundamental optimizations of the Intel compiler and–the informations of the optimizer report provided by the
compiler
January 19, 2005 Page 3| |
January 19, 2005 Page 4| |
January 19, 2005 Page 5| |
January 19, 2005 Page 6| |
January 19, 2005 Page 7| |
January 19, 2005 Page 8| |
January 19, 2005 Page 9| |
January 19, 2005 Page 10| |
January 19, 2005 Page 11| |
New command line switches
Run-time checking (-check)
Floating point exception handling (-fpe)
Non-native I/O conversion (-convert)
Detect FP stack corruption (-fpstkchk)
Display traceback on errors (-trace)
Link in threaded libraries (-threads)
January 19, 2005 Page 12| |
January 19, 2005 Page 13| |
January 19, 2005 Page 14| |
Compiler Directives
Fortran:cdir$ ivdep
cdir$ swp
cdir$ noswp
cdir$ loop count (NN)
cdir$ distribute point
cdir$ unroll (n)
cdir$ nounroll
cdir$ prefetch a
cdir$ noprefetch c
no aliasing
try to software-pipeline
disable software-pipelining
hint for SWP
split this large loop
unroll n times
do not unroll
prefetch array “a”
do not prefetch array “c”
January 19, 2005 Page 15| |
Compiler Directives
C/C++:#pragma ivdep
#pragma swp
#pragma noswp
#pragma loop count (NN)
#pragma distribute point
#pragma unroll (n)
#pragma nounroll
#pragma prefetch a
#pragma noprefetch c
no aliasing
try to software-pipeline
disable software-pipelining
hint for SWP
split this large loop
unroll n times
do not unroll
prefetch array “a”
do not prefetch array “c”
January 19, 2005 Page 16| |
January 19, 2005 Page 17| |
January 19, 2005 Page 18| |
January 19, 2005 Page 19| |
January 19, 2005 Page 20| |
January 19, 2005 Page 21| |
January 19, 2005 Page 22| |
January 19, 2005 Page 23| |
January 19, 2005 Page 24| |
January 19, 2005 Page 25| |
January 19, 2005 Page 26| |
January 19, 2005 Page 27| |
January 19, 2005 Page 28| |