Nvidia Hpc Compilers Reference Guide

Nvidia Hpc Compilers Reference Guide

NVIDIA HPC COMPILERS REFERENCE GUIDE PR-09861-001-V20.9 | September 2020 TABLE OF CONTENTS Preface..........................................................................................................................................................ix Audience Description...............................................................................................................................ix Compatibility and Conformance to Standards.......................................................................................ix Organization.............................................................................................................................................. x Hardware and Software Constraints......................................................................................................xi Conventions.............................................................................................................................................. xi Terms.......................................................................................................................................................xii Chapter 1. Fortran, C++ and C Data Types................................................................................................ 1 1.1. Fortran Data Types........................................................................................................................... 1 1.1.1. Fortran Scalars.......................................................................................................................... 1 1.1.2. FORTRAN real(2)........................................................................................................................ 3 1.1.3. FORTRAN 77 Aggregate Data Type Extensions........................................................................3 1.1.4. Fortran 90 Aggregate Data Types (Derived Types).................................................................. 4 1.2. C and C++ Data Types...................................................................................................................... 5 1.2.1. C and C++ Scalars..................................................................................................................... 5 1.2.2. C and C++ Aggregate Data Types............................................................................................. 6 1.2.3. Class and Object Data Layout...................................................................................................7 1.2.4. Aggregate Alignment................................................................................................................. 7 1.2.5. Bit-field Alignment.....................................................................................................................8 1.2.6. Other Type Keywords in C and C++.......................................................................................... 9 Chapter 2. Command-Line Options Reference........................................................................................ 10 2.1. HPC Compilers Option Summary.................................................................................................. 10 2.1.1. Acceleration and Optimization-Related Compiler Options.................................................... 11 2.1.2. Build-Related Options..............................................................................................................11 2.1.3. Debug-Related Compiler Options........................................................................................... 13 2.1.4. Linking and Runtime-Related Compiler Options................................................................... 14 2.2. Generic Compiler Options.............................................................................................................. 15 2.2.1. -#...............................................................................................................................................15 2.2.2. -acc........................................................................................................................................... 15 2.2.3. -Bdynamic.................................................................................................................................16 2.2.4. -byteswapio...............................................................................................................................17 2.2.5. -C...............................................................................................................................................17 2.2.6. -c............................................................................................................................................... 18 2.2.7. -c++libs......................................................................................................................................18 2.2.8. -cuda......................................................................................................................................... 19 2.2.9. -cudalib..................................................................................................................................... 19 2.2.10. -D.............................................................................................................................................20 2.2.11. -d<arg>....................................................................................................................................21 2.2.12. -dryrun.................................................................................................................................... 22 2.2.13. -drystdinc................................................................................................................................ 22 NVIDIA HPC Compilers Reference Guide Version 20.9 | ii 2.2.14. -E............................................................................................................................................. 23 2.2.15. -F............................................................................................................................................. 23 2.2.16. -fast......................................................................................................................................... 24 2.2.17. --flagcheck..............................................................................................................................24 2.2.18. -fortranlibs..............................................................................................................................25 2.2.19. -fpic......................................................................................................................................... 25 2.2.20. -fPIC........................................................................................................................................ 26 2.2.21. -g............................................................................................................................................. 26 2.2.22. -g77libs................................................................................................................................... 27 2.2.23. -gopt........................................................................................................................................27 2.2.24. -gpu......................................................................................................................................... 28 2.2.25. -help........................................................................................................................................ 30 2.2.26. -I.............................................................................................................................................. 31 2.2.27. -i2, -i4, -i8...............................................................................................................................32 2.2.28. -K<flag>...................................................................................................................................33 2.2.29. -L............................................................................................................................................. 35 2.2.30. -l<library>................................................................................................................................35 2.2.31. -M............................................................................................................................................ 36 2.2.32. -M<nvflag>.............................................................................................................................. 36 2.2.33. -m............................................................................................................................................41 2.2.34. -mcmodel=medium................................................................................................................ 42 2.2.35. -module <moduledir>............................................................................................................ 42 2.2.36. -mp..........................................................................................................................................43 2.2.37. -noswitcherror........................................................................................................................44 2.2.38. -O<level>................................................................................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    194 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us