Virginia Tech
Advanced Research Computing
  • Home
  • About ARC@VT
    • Leadership & Staff
    • Events
    • Press Room
    • Featured Links
    • Contact Us
  • Research
  • Services & Support
    • User Accounts
    • Training
    • Documentation
    • Facility Tours
    • Help - Support Requests
  • Systems & Resources
    • System X
    • SGI Systems
    • Sun Systems
    • Visualization
  • Application Software
  • Web Site Map


MPI Code Examples

Introduction

Sample files are available illustrating the use of MPI calls to facilitate your getting started with MPI programming.

For an introduction to MPI, see: MPI Overview.

For system specific information, see:

  • Using MPI on System X

  • Using MPI on the VT ARC SGI Systems


Hello World

Two very simple MPI programs which do more than display the text "Hello World!" from multiple processors, are listed in hello_world.php:

  • Hello_World_C.c

  • Hello_World_C.f90

Quadrature

QUADRATURE estimates an integral using quadrature and examples are available as:

  • program.c, C program;

  • program.cxx, C++ program; (an extension of ".C" or ".cpp" can also be used for C++ programs).

  • program.f, FORTRAN77 program;

  • program.f90, FORTRAN90 program;





VT-ARC Privacy Statement | Contact Us
VT-ARC is a Unit within the Office of the Vice President of Information Technology
© 2007-2008 Virginia Polytechnic Institute and State University
Principles of Community | Acceptable Use Policy | Accessibility | Equal Opportunity
Website Feedback   -   Page Last Updated:  January 28th, 2008