pgi visual fortran user's guide - the portland visual fortran user's guide version 2017 ......

Download PGI Visual Fortran User's Guide - The Portland   Visual Fortran User's Guide Version 2017 ... Setting Global User Options ... Scope of Fortran Directives and Command-Line Options

Post on 12-Mar-2018

221 views

Category:

Documents

7 download

Embed Size (px)

TRANSCRIPT

  • PGI VISUAL FORTRAN USER'S GUIDE

    Version2017

  • PGI Visual Fortran User's Guide Version2017|ii

    TABLE OF CONTENTS

    Preface............................................................................................................ xiiAudience Description......................................................................................... xiiCompatibility and Conformance to Standards............................................................xiiOrganization................................................................................................... xiiiHardware and Software Constraints.......................................................................xivConventions.................................................................................................... xivTerms............................................................................................................ xvRelated Publications..........................................................................................xvi

    Chapter1.Getting Started with PVF........................................................................ 11.1.PVF on the Start Screen and Start Menu............................................................. 1

    1.1.1.Shortcuts to Launch PVF........................................................................... 21.1.2.Commands Submenu................................................................................ 21.1.3.Profiler Submenu.................................................................................... 21.1.4.Documentation Menu............................................................................... 21.1.5.Licensing Submenu.................................................................................. 3

    1.2. Introduction to PVF...................................................................................... 31.2.1.Visual Studio Settings...............................................................................31.2.2.Solutions and Projects..............................................................................3

    1.3.Creating a Hello World Project.........................................................................41.4.Using PVF Help............................................................................................61.5.PVF Sample Projects..................................................................................... 61.6.Compatibility.............................................................................................. 7

    1.6.1.Win32 API Support (dfwin).........................................................................71.6.2.Unix/Linux Portability Interfaces (dflib, dfport)............................................... 81.6.3.Windows Applications and Graphical User Interfaces......................................... 8

    Chapter2.Build with PVF....................................................................................102.1.Creating a PVF Project................................................................................. 10

    2.1.1.PVF Project Types..................................................................................102.1.2.Creating a New Project........................................................................... 10

    2.2.PVF Solution Explorer.................................................................................. 112.3.Adding Files to a PVF Project.........................................................................11

    2.3.1.Add a New File.....................................................................................112.3.2.Add an Existing File............................................................................... 12

    2.4.Adding a New Project to a Solution................................................................. 122.5.Project Dependencies and Build Order.............................................................. 132.6.Configurations............................................................................................132.7.Platforms..................................................................................................132.8.Setting Global User Options........................................................................... 132.9.Setting Configuration Options using Property Pages...............................................142.10.Property Pages..........................................................................................14

  • PGI Visual Fortran User's Guide Version2017|iii

    2.11.Setting File Properties Using the Properties Window............................................ 192.12.Setting Fixed Format..................................................................................202.13.Building a Project with PVF..........................................................................20

    2.13.1.Order of PVF Build Operations................................................................. 212.14.Build Events and Custom Build Steps...............................................................21

    2.14.1.Build Events....................................................................................... 212.14.2.Custom Build Steps...............................................................................22

    2.15.PVF Build Macros.......................................................................................222.16.Static and Dynamic Linking.......................................................................... 222.17.VC# Interoperability................................................................................... 232.18.VC++ Interoperability..................................................................................232.19.Linking PVF and VC++ Projects...................................................................... 232.20.Common Link-time Errors............................................................................ 242.21.Migrating an Existing Application to PVF.......................................................... 242.22.Fortran Editing Features..............................................................................25

    Chapter3.Debug with PVF.................................................................................. 263.1.Windows Used in Debugging...........................................................................26

    3.1.1.Autos Window.......................................................................................263.1.2.Breakpoints Window............................................................................... 263.1.3.Call Stack Window................................................................................. 273.1.4.Disassembly Window...............................................................................273.1.5. Immediate Window................................................................................ 273.1.6.Locals Window......................................................................................283.1.7.Memory Window....................................................................................283.1.8.Modules Window................................................................................... 283.1.9.Output Window.....................................................................................283.1.10.Processes Window................................................................................ 283.1.11.Registers Window................................................................................. 293.1.12.Threads Window.................................................................................. 293.1.13.Watch Window.................................................................................... 29

    3.2.Variable Rollover........................................................................................ 293.2.1.Scalar Variables.................................................................................... 303.2.2.Array Variables..................................................................................... 303.2.3.User-Defined Type Variables..................................................................... 30

    3.3.Debugging an MPI Application in PVF................................................................ 313.4.Attaching the PVF Debugger to a Running Application............................................31

    3.4.1.Attach to a Native Windows Application.......................................................313.5.Using PVF to Debug a Standalone Executable...................................................... 32

    3.5.1.Launch PGI Visual Fortran from a Native Windows Command Prompt.....................323.5.2.Using PGI Visual Fortran After a Command Line Launch.................................... 333.5.3.Tips on Launching PVF from the Command Line..............................................34

    Chapter4.Using MPI in PVF................................................................................. 354.1.MPI Overview.............................................................................................35

  • PGI Visual Fortran User's Guide Version2017|iv

    4.2.System and Software Requirements..................................................................354.3.Compile using MS-MPI.................................................................................. 364.4.Enable MPI Execution...................................................................................36

    4.4.1.MPI Debugging Property Options................................................................ 364.5.Launch an MPI Application.............................................................................364.6.Debug an MPI Application..............................................................................36

    Chapter5.

Recommended

View more >