28
January 19, 2005 SGI® Altix™ Introduction to Intel Compilers Reiner Vogelsang SGI GmbH [email protected]

SGI® Altix™ Introduction to Intel Compilers · 2007. 2. 9. · SGI GmbH [email protected] | January 19, 2005 | Page 2 Objectives • After completion you understand – some fundamental

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

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

January 19, 2005

SGI® Altix™Introduction to Intel Compilers

Reiner VogelsangSGI GmbH

[email protected]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

January 19, 2005 Page 28| |