Compile and run Fortran/C programs — PSMN Documentation documentation
PSMN Documentation Logo

Table of Contents

  • Quickstart
  • Connection
  • Environment & tools
  • Filesystem overview
  • Clusters usage
  • Tutorials
    • Bash and shell scripting
    • Compile and run Fortran/C programs
      • Compiling and executing a sequential Fortran program
      • Compiling and executing a parallel MPI Fortran program
      • Compiling and executing a parallel OpenMP Fortran program
      • Compiling and executing a sequential C program
      • Compiling and executing a parallel MPI C program
      • Compiling and executing a parallel hybrid MPI&OpenMP C program
      • Scripts used in these tutorials
        • script.sh (for sequential program)
        • script.sh (for parallel MPI program)
        • script.sh (for parallel OpenMP program)
        • script.sh (for hybrid MPI and OpenMP program)
        • ProgPAR_OpenMP.f90
        • ProgPAR_Hybrid_OpenMP_MPI.c
        • SommeVecVecSEQ.f90
        • SommeVecVecSEQ.c
        • SommeVecVecPAR.f90
        • SommeVecVecPAR.c
      • Usefull links on compilation
    • Perl and modules
    • Python and modules
    • Julia and Packages
    • R and packages
    • Calculating on GPU
    • Software Diagnostics with NVIDIA Nsight Compute

Annexes

  • Installed softwares
  • Available Modules
  • Glossary
  • Usefull links
  • Drafts
PSMN Documentation
  • Tutorials
  • Compile and run Fortran/C programs
  • View page source

Compile and run Fortran/C programs

These pages contain tutorials on how to compile/run on PSMN clusters:

  • Compiling and executing a sequential Fortran program
  • Compiling and executing a parallel MPI Fortran program
  • Compiling and executing a parallel OpenMP Fortran program
  • Compiling and executing a sequential C program
  • Compiling and executing a parallel MPI C program
  • Compiling and executing a parallel hybrid MPI&OpenMP C program

Scripts used in these tutorials

  • script.sh (for sequential program)
  • script.sh (for parallel MPI program)
  • script.sh (for parallel OpenMP program)
  • script.sh (for hybrid MPI and OpenMP program)
  • ProgPAR_OpenMP.f90
  • ProgPAR_Hybrid_OpenMP_MPI.c
  • SommeVecVecSEQ.f90
  • SommeVecVecSEQ.c
  • SommeVecVecPAR.f90
  • SommeVecVecPAR.c

Usefull links on compilation

Tips and tricks about compilation, package build, dynamic linking, etc.

  • https://dmerej.info/blog/post/symlinks-and-so-files-on-linux/

  • http://cpp.developpez.com/cours/cpp/ [fr]

  • http://nxg.me.uk/dist/sigwatch/ trap and process signals in fortran

  • Hybrid MPI-OpenMP Programmation [fr]

  • OpenMP Programmation [fr]

See also Usefull links.

Previous Next

© Copyright 2021-2025, PSMN's Staff. Last updated on Wednesday 26 Feb 2025 at 09:17.

Built with Sphinx using a theme provided by Read the Docs.

Return to PSMN website

Centre Blaise Pascal et Pôle Scientifique de Modélisation Numérique, ENS de Lyon - 46, allée d'Italie - 69364 Lyon cedex 07 - France
Téléphone : +33 (0)4 72 72 86 37 - Email : cbp @ ens-lyon.fr

This site do not use any cookie or tracker to improve your surfing experience.