SGI IS5600: Seismic Processing Solution Brief SGI IS5600 ...
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...
![Page 1: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/1.jpg)
January 19, 2005
SGI® Altix™Introduction to Intel Compilers
Reiner VogelsangSGI GmbH
![Page 2: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/2.jpg)
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
![Page 3: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/3.jpg)
January 19, 2005 Page 3| |
![Page 4: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/4.jpg)
January 19, 2005 Page 4| |
![Page 5: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/5.jpg)
January 19, 2005 Page 5| |
![Page 6: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/6.jpg)
January 19, 2005 Page 6| |
![Page 7: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/7.jpg)
January 19, 2005 Page 7| |
![Page 8: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/8.jpg)
January 19, 2005 Page 8| |
![Page 9: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/9.jpg)
January 19, 2005 Page 9| |
![Page 10: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/10.jpg)
January 19, 2005 Page 10| |
![Page 11: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/11.jpg)
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)
![Page 12: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/12.jpg)
January 19, 2005 Page 12| |
![Page 13: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/13.jpg)
January 19, 2005 Page 13| |
![Page 14: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/14.jpg)
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”
![Page 15: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/15.jpg)
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”
![Page 16: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/16.jpg)
January 19, 2005 Page 16| |
![Page 17: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/17.jpg)
January 19, 2005 Page 17| |
![Page 18: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/18.jpg)
January 19, 2005 Page 18| |
![Page 19: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/19.jpg)
January 19, 2005 Page 19| |
![Page 20: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/20.jpg)
January 19, 2005 Page 20| |
![Page 21: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/21.jpg)
January 19, 2005 Page 21| |
![Page 22: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/22.jpg)
January 19, 2005 Page 22| |
![Page 23: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/23.jpg)
January 19, 2005 Page 23| |
![Page 24: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/24.jpg)
January 19, 2005 Page 24| |
![Page 25: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/25.jpg)
January 19, 2005 Page 25| |
![Page 26: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/26.jpg)
January 19, 2005 Page 26| |
![Page 27: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/27.jpg)
January 19, 2005 Page 27| |
![Page 28: SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH reiner@sgi.com | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental](https://reader035.fdocuments.in/reader035/viewer/2022071407/60fd6d47d654304cb8329962/html5/thumbnails/28.jpg)
January 19, 2005 Page 28| |