SlideShare a Scribd company logo
Introduction to Fortran
and Fortran Compiling
Outline
 Surfing www.mcsr.olemiss.edu website
 Logging into the system via ssh
 Basic Structure and Syntax of Fortran
 A quick glance on PICO editor
 More detailed look on compilers and
  compiling commands
 Application of Fortran Compiling
Logging into the system using ssh
   Logging into the system from Windows:
       Start the secure shell client:
        Start->Programs->SSH Secure Shell->Secure Shell Client
       Connect to willow:
        From the secure shell window, click Quick Connect.
        Then, from the Connect to Remote Host pop-up window, enter:
        Hostname : HostName
        User Name             : UserName
        Click Connect.
   Logging into the system from Unix:
       Start the Terminal:
        Finder Utilities  Terminal
       Type the following command:
        ssh UserName@HostName
        Enter your password
   If you are a windows user and you want to download ssh;
    Go to IT Helpdesk @
    http://www.olemiss.edu/helpdesk/resources.html#software and click on
    the SSH Secure Shell 3.1 link.
   If you are a Unix user, ssh will come with the operating system
Simple Fortran Program
c This program adds two numbers and displays the result

program add
double precision a,b,c
write(*,*) 'Input two numbers (include a decimal point)'
read (*,*) a,b
c=a+b
write (*,*) 'The sum of the numbers you entered is', c
stop
end
The PICO Editor
   General Command
       Write editor contents to a file               [Ctrl]   o
       Save the file and exit pico                   [Ctrl]   x
       Spell Check                                   [Ctrl]   t
       Justify the text                              [Ctrl]   j
   Moving around in your file
       Move   one character to the right   [Ctrl]   f or right arrow key
       Move   one character to the left    [Ctrl]   b or left arrow key
       Move   up one line                  [Ctrl]   p or up arrow key
       Move   down one line                [Ctrl]   n or down arrow key
More detailed look into Compilers and
Compiling commands
   Fortran Compilers at UM/MCSR:
       MIPSPro Fortran Compilers, version 7.4, on sweetgum
       Portland Group and MPICH Fortran compilers on
        mimosa
       Intel Fortran Compilers(7.1, 8.0 and 9.0) on redwood
       GUI g77 on willow
       Sun’s Forte f90 on willow
Sweetgum
   MIPSPro Fortran Compilers, version 7.4
       To compile with f77 on sweetgum, enter:
            f77 filename.for
       To compile with f90 on sweetgum, enter:
            f90 filename.for
Mimosa
   Portland Group and MPICH Fortran compilers
       To compile with the MPICH Fortran compilers, enter:
            /usr/local/apps/pgi-5.2/linux86/5.2/bin/pgf77 filename.for
       To compile with the PGI SDK compilers, enter:
          /usr/local/apps/pgi-6.1/linux86/6.1/bin/pgf90 filename.for
Redwood
   Intel Fortran Compilers(7.1, 8.0 and 9.0)
       Before using the Fortran Compiler on redwood, you
        must first load the appropriate Intel compiler module.
       Then, to compile:
            ifc filename.for     if using the 7.1 compiler
            ifort filename.for   if using the 8.0 or 9.0 compilers
Loading the appropriate Intel Compiler
Module
   Several versions/builds of Intel compilers are available on redwood. To
    compile, you must first pick which compiler version module you want to
    load, then load it. Before you can use the module command, you must
    source the correct setup file for your shell.
        . /usr/share/modules/init/sh (if using ssh) (There should be a space between .
         and /opt)
   Then you use the module command:
        module   list (to see if any other versions of compiler modules are loaded)
        module   purge (to unload any other versions of compiler modules)
        module   list (to verify that other versions were successfully unloaded)
        module   avail (to see what versions of compiler modules are available to load)
   For example, to load the latest 9.1 version of the F Compilers:
        module load f91
        module list
   These are the names of the modules and the compiler versions they
    correspond to:
        intel-compilers.7.1.037   for   fortran   7.1
        intel-compilers.8.0.042   for   fortran   8.0
        intel-compilers.8.0.046   for   fortran   8.0
        intel-compilers.9.0.027   for   fortran   9.0
        intel-compilers.9.1.046   for   fortran   9.1
Willow
   Sun’s Forte f90
       To compile with f90, enter:
          f90 filename.for

          If there are no compilation errors this creates an executable file
            called a.out. To execute the Fortran program, enter: ./a.out.

   GUI g77
      To compile with g77, enter:
            g77 filename.for
            If there are no compilation errors this creates an executable file
             called a.out. To execute the Fortran program, enter: ./a.out.
More about Compiling Commands
 If there are no compilation errors, the
  previously mentioned Fortran Commands
  create an executable file called a.out. To
  execute the Fortran program, enter:
  ./a.out.
 To create an executable file with another
  filename, use the –o flag, for example:
       f90 –o exefilename filename.for
   For more information about Fortran
    compilers, Go to:
       www.mcsr.olemiss.edu
       SoftwareFortran
How to run a compiled files
 Thecompiling commands create
 an executable file known as
 a.out unless specified otherwise.

 Toexecute your program,
 type: ./a.out and press Enter.
MCSR Fortran Compilers
 MCSR's Fortran compilers and platforms
 are available for instructional or research
 use for all students, faculty, and staff of
 Mississippi's eight public universities.
 Users should decide which compiler is best
 suited for their application. Compilers on
 SUN are for fast jobs with a quick turn
 around, while compilers on sweetgum and
 magnolia are designed for larger, more
 computationally intensive jobs.
MCSR Accounts
   MCSR is pleased to provide free computer
    accounts on redwood, sweetgum, and mimosa for
    any student, faculty, or research staff member at
    any of Mississippi's 8 publicly funded universities.

   If you can't access an existing account, please e-
    mail assist@mcsr.olemiss.edu or call one of the
    consultants at 662-915-7206. You may request a
    password reset from the MCSR Online Account
    Manager.

More Related Content

What's hot

C programming session6
C programming  session6C programming  session6
C programming session6
Keroles karam khalil
 
Introduction to C Language - Version 1.0 by Mark John Lado
Introduction to C Language - Version 1.0 by Mark John LadoIntroduction to C Language - Version 1.0 by Mark John Lado
Introduction to C Language - Version 1.0 by Mark John Lado
Mark John Lado, MIT
 
C programming session3
C programming  session3C programming  session3
C programming session3
Keroles karam khalil
 
C programming session7
C programming  session7C programming  session7
C programming session7
Keroles karam khalil
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
Rutvik Pensionwar
 
C programming first_session
C programming first_sessionC programming first_session
C programming first_session
Keroles karam khalil
 
Overview of c language
Overview of c languageOverview of c language
Overview of c languageshalini392
 
Learning the C Language
Learning the C LanguageLearning the C Language
Learning the C Language
nTier Custom Solutions
 
The future of DSLs - functions and formal methods
The future of DSLs - functions and formal methodsThe future of DSLs - functions and formal methods
The future of DSLs - functions and formal methods
Markus Voelter
 
C programming part2
C programming part2C programming part2
C programming part2
Keroles karam khalil
 
Quiz 9
Quiz 9Quiz 9
C programming language tutorial
C programming language tutorial C programming language tutorial
C programming language tutorial
javaTpoint s
 
C language ppt
C language pptC language ppt
C language ppt
Ğäùråv Júñêjå
 
Compiler unit 4
Compiler unit 4Compiler unit 4
Compiler unit 4
BBDITM LUCKNOW
 
Unit3 cspc
Unit3 cspcUnit3 cspc
Unit3 cspc
BBDITM LUCKNOW
 
OpenGurukul : Language : C Programming
OpenGurukul : Language : C ProgrammingOpenGurukul : Language : C Programming
OpenGurukul : Language : C Programming
Open Gurukul
 
C LANGUAGE - BESTECH SOLUTIONS
C LANGUAGE - BESTECH SOLUTIONSC LANGUAGE - BESTECH SOLUTIONS
C LANGUAGE - BESTECH SOLUTIONS
BESTECH SOLUTIONS
 

What's hot (20)

C programming session6
C programming  session6C programming  session6
C programming session6
 
Introduction to C Language - Version 1.0 by Mark John Lado
Introduction to C Language - Version 1.0 by Mark John LadoIntroduction to C Language - Version 1.0 by Mark John Lado
Introduction to C Language - Version 1.0 by Mark John Lado
 
C programming session3
C programming  session3C programming  session3
C programming session3
 
C programming session7
C programming  session7C programming  session7
C programming session7
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
C programming first_session
C programming first_sessionC programming first_session
C programming first_session
 
PM1
PM1PM1
PM1
 
Overview of c language
Overview of c languageOverview of c language
Overview of c language
 
Learning the C Language
Learning the C LanguageLearning the C Language
Learning the C Language
 
The future of DSLs - functions and formal methods
The future of DSLs - functions and formal methodsThe future of DSLs - functions and formal methods
The future of DSLs - functions and formal methods
 
C programming part2
C programming part2C programming part2
C programming part2
 
Quiz 9
Quiz 9Quiz 9
Quiz 9
 
C notes.pdf
C notes.pdfC notes.pdf
C notes.pdf
 
C programming language tutorial
C programming language tutorial C programming language tutorial
C programming language tutorial
 
C language ppt
C language pptC language ppt
C language ppt
 
Compiler unit 4
Compiler unit 4Compiler unit 4
Compiler unit 4
 
Unit3 cspc
Unit3 cspcUnit3 cspc
Unit3 cspc
 
Assembler
AssemblerAssembler
Assembler
 
OpenGurukul : Language : C Programming
OpenGurukul : Language : C ProgrammingOpenGurukul : Language : C Programming
OpenGurukul : Language : C Programming
 
C LANGUAGE - BESTECH SOLUTIONS
C LANGUAGE - BESTECH SOLUTIONSC LANGUAGE - BESTECH SOLUTIONS
C LANGUAGE - BESTECH SOLUTIONS
 

Similar to Fortran compiling 2

Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guide
vjvarenya
 
Backtrack Manual Part4
Backtrack Manual Part4Backtrack Manual Part4
Backtrack Manual Part4
Nutan Kumar Panda
 
Unix Administration 2
Unix Administration 2Unix Administration 2
Unix Administration 2
Information Technology
 
Getting started with robonova in ubuntu
Getting started with robonova in ubuntuGetting started with robonova in ubuntu
Getting started with robonova in ubuntu
Sandeep Saini
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
Jim Birch
 
PhyloPipe.v1.1_manual_20150610
PhyloPipe.v1.1_manual_20150610PhyloPipe.v1.1_manual_20150610
PhyloPipe.v1.1_manual_20150610Yixuan Guo
 
App armor structure
App armor structureApp armor structure
App armor structure
Longbeo Longnhat
 
Linux
LinuxLinux
Programar En Fortran
Programar En FortranProgramar En Fortran
Programar En FortranSaul Bernal
 
LIGGGHTS installation-guide
LIGGGHTS installation-guideLIGGGHTS installation-guide
LIGGGHTS installation-guide
Braj Bhushan Prasad
 
Dependency management with Composer
Dependency management with ComposerDependency management with Composer
Dependency management with ComposerJason Grimes
 
Recommended Software and Modifications for Server Security
Recommended Software and Modifications for Server SecurityRecommended Software and Modifications for Server Security
Recommended Software and Modifications for Server Security
HTS Hosting
 
Running Symfony
Running SymfonyRunning Symfony
Running Symfony
Wildan Maulana
 
Oracle forms and reports 11g installation on linux
Oracle forms and reports 11g installation on linuxOracle forms and reports 11g installation on linux
Oracle forms and reports 11g installation on linux
Venu Palakolanu
 
Linux IO
Linux IOLinux IO
Linux IO
Liran Ben Haim
 
U Boot or Universal Bootloader
U Boot or Universal BootloaderU Boot or Universal Bootloader
U Boot or Universal Bootloader
Satpal Parmar
 
Install websphere message broker 8 RHEL 6 64 bits
Install websphere message broker 8 RHEL 6 64 bitsInstall websphere message broker 8 RHEL 6 64 bits
Install websphere message broker 8 RHEL 6 64 bits
Manuel Vega
 
Chapter03 Of It .... BBa 1st
Chapter03 Of It .... BBa 1st Chapter03 Of It .... BBa 1st
Chapter03 Of It .... BBa 1st
Geo-Info Ltd
 
Phalcon - Giant Killer
Phalcon - Giant KillerPhalcon - Giant Killer
Phalcon - Giant Killer
Jackson F. de A. Mafra
 

Similar to Fortran compiling 2 (20)

Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guide
 
Backtrack Manual Part4
Backtrack Manual Part4Backtrack Manual Part4
Backtrack Manual Part4
 
Unix Administration 2
Unix Administration 2Unix Administration 2
Unix Administration 2
 
Getting started with robonova in ubuntu
Getting started with robonova in ubuntuGetting started with robonova in ubuntu
Getting started with robonova in ubuntu
 
Fedora15 lovelock-pres
Fedora15 lovelock-presFedora15 lovelock-pres
Fedora15 lovelock-pres
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
 
PhyloPipe.v1.1_manual_20150610
PhyloPipe.v1.1_manual_20150610PhyloPipe.v1.1_manual_20150610
PhyloPipe.v1.1_manual_20150610
 
App armor structure
App armor structureApp armor structure
App armor structure
 
Linux
LinuxLinux
Linux
 
Programar En Fortran
Programar En FortranProgramar En Fortran
Programar En Fortran
 
LIGGGHTS installation-guide
LIGGGHTS installation-guideLIGGGHTS installation-guide
LIGGGHTS installation-guide
 
Dependency management with Composer
Dependency management with ComposerDependency management with Composer
Dependency management with Composer
 
Recommended Software and Modifications for Server Security
Recommended Software and Modifications for Server SecurityRecommended Software and Modifications for Server Security
Recommended Software and Modifications for Server Security
 
Running Symfony
Running SymfonyRunning Symfony
Running Symfony
 
Oracle forms and reports 11g installation on linux
Oracle forms and reports 11g installation on linuxOracle forms and reports 11g installation on linux
Oracle forms and reports 11g installation on linux
 
Linux IO
Linux IOLinux IO
Linux IO
 
U Boot or Universal Bootloader
U Boot or Universal BootloaderU Boot or Universal Bootloader
U Boot or Universal Bootloader
 
Install websphere message broker 8 RHEL 6 64 bits
Install websphere message broker 8 RHEL 6 64 bitsInstall websphere message broker 8 RHEL 6 64 bits
Install websphere message broker 8 RHEL 6 64 bits
 
Chapter03 Of It .... BBa 1st
Chapter03 Of It .... BBa 1st Chapter03 Of It .... BBa 1st
Chapter03 Of It .... BBa 1st
 
Phalcon - Giant Killer
Phalcon - Giant KillerPhalcon - Giant Killer
Phalcon - Giant Killer
 

Recently uploaded

Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 

Recently uploaded (20)

Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 

Fortran compiling 2

  • 1. Introduction to Fortran and Fortran Compiling
  • 2. Outline  Surfing www.mcsr.olemiss.edu website  Logging into the system via ssh  Basic Structure and Syntax of Fortran  A quick glance on PICO editor  More detailed look on compilers and compiling commands  Application of Fortran Compiling
  • 3. Logging into the system using ssh  Logging into the system from Windows:  Start the secure shell client: Start->Programs->SSH Secure Shell->Secure Shell Client  Connect to willow: From the secure shell window, click Quick Connect. Then, from the Connect to Remote Host pop-up window, enter: Hostname : HostName User Name : UserName Click Connect.  Logging into the system from Unix:  Start the Terminal: Finder Utilities  Terminal  Type the following command: ssh UserName@HostName Enter your password  If you are a windows user and you want to download ssh; Go to IT Helpdesk @ http://www.olemiss.edu/helpdesk/resources.html#software and click on the SSH Secure Shell 3.1 link.  If you are a Unix user, ssh will come with the operating system
  • 4. Simple Fortran Program c This program adds two numbers and displays the result program add double precision a,b,c write(*,*) 'Input two numbers (include a decimal point)' read (*,*) a,b c=a+b write (*,*) 'The sum of the numbers you entered is', c stop end
  • 5. The PICO Editor  General Command  Write editor contents to a file [Ctrl] o  Save the file and exit pico [Ctrl] x  Spell Check [Ctrl] t  Justify the text [Ctrl] j  Moving around in your file  Move one character to the right [Ctrl] f or right arrow key  Move one character to the left [Ctrl] b or left arrow key  Move up one line [Ctrl] p or up arrow key  Move down one line [Ctrl] n or down arrow key
  • 6. More detailed look into Compilers and Compiling commands  Fortran Compilers at UM/MCSR:  MIPSPro Fortran Compilers, version 7.4, on sweetgum  Portland Group and MPICH Fortran compilers on mimosa  Intel Fortran Compilers(7.1, 8.0 and 9.0) on redwood  GUI g77 on willow  Sun’s Forte f90 on willow
  • 7. Sweetgum  MIPSPro Fortran Compilers, version 7.4  To compile with f77 on sweetgum, enter:  f77 filename.for  To compile with f90 on sweetgum, enter:  f90 filename.for
  • 8. Mimosa  Portland Group and MPICH Fortran compilers  To compile with the MPICH Fortran compilers, enter:  /usr/local/apps/pgi-5.2/linux86/5.2/bin/pgf77 filename.for  To compile with the PGI SDK compilers, enter:  /usr/local/apps/pgi-6.1/linux86/6.1/bin/pgf90 filename.for
  • 9. Redwood  Intel Fortran Compilers(7.1, 8.0 and 9.0)  Before using the Fortran Compiler on redwood, you must first load the appropriate Intel compiler module.  Then, to compile:  ifc filename.for if using the 7.1 compiler  ifort filename.for if using the 8.0 or 9.0 compilers
  • 10. Loading the appropriate Intel Compiler Module  Several versions/builds of Intel compilers are available on redwood. To compile, you must first pick which compiler version module you want to load, then load it. Before you can use the module command, you must source the correct setup file for your shell.  . /usr/share/modules/init/sh (if using ssh) (There should be a space between . and /opt)  Then you use the module command:  module list (to see if any other versions of compiler modules are loaded)  module purge (to unload any other versions of compiler modules)  module list (to verify that other versions were successfully unloaded)  module avail (to see what versions of compiler modules are available to load)  For example, to load the latest 9.1 version of the F Compilers:  module load f91  module list  These are the names of the modules and the compiler versions they correspond to:  intel-compilers.7.1.037 for fortran 7.1  intel-compilers.8.0.042 for fortran 8.0  intel-compilers.8.0.046 for fortran 8.0  intel-compilers.9.0.027 for fortran 9.0  intel-compilers.9.1.046 for fortran 9.1
  • 11. Willow  Sun’s Forte f90  To compile with f90, enter:  f90 filename.for  If there are no compilation errors this creates an executable file called a.out. To execute the Fortran program, enter: ./a.out.  GUI g77  To compile with g77, enter:  g77 filename.for  If there are no compilation errors this creates an executable file called a.out. To execute the Fortran program, enter: ./a.out.
  • 12. More about Compiling Commands  If there are no compilation errors, the previously mentioned Fortran Commands create an executable file called a.out. To execute the Fortran program, enter: ./a.out.  To create an executable file with another filename, use the –o flag, for example:  f90 –o exefilename filename.for  For more information about Fortran compilers, Go to:  www.mcsr.olemiss.edu  SoftwareFortran
  • 13. How to run a compiled files  Thecompiling commands create an executable file known as a.out unless specified otherwise.  Toexecute your program, type: ./a.out and press Enter.
  • 14. MCSR Fortran Compilers MCSR's Fortran compilers and platforms are available for instructional or research use for all students, faculty, and staff of Mississippi's eight public universities. Users should decide which compiler is best suited for their application. Compilers on SUN are for fast jobs with a quick turn around, while compilers on sweetgum and magnolia are designed for larger, more computationally intensive jobs.
  • 15. MCSR Accounts  MCSR is pleased to provide free computer accounts on redwood, sweetgum, and mimosa for any student, faculty, or research staff member at any of Mississippi's 8 publicly funded universities.  If you can't access an existing account, please e- mail assist@mcsr.olemiss.edu or call one of the consultants at 662-915-7206. You may request a password reset from the MCSR Online Account Manager.