Parallel processing
This presentation is the property of its rightful owner.
Sponsored Links
1 / 10

Parallel Processing PowerPoint PPT Presentation


  • 91 Views
  • Uploaded on
  • Presentation posted in: General

Parallel Processing. To study the communication among the nodes of a cluster. MPI-Message Passing Interface. A library of functions or an API Allows communication between processors in a distributed memory architecture. Affords portability. Uses either a C or a FORTRAN compiler.

Download Presentation

Parallel Processing

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Parallel processing

Parallel Processing

To study the communication among the nodes of a cluster


Mpi message passing interface

MPI-Message Passing Interface

  • A library of functions or an API

  • Allows communication between processors in a distributed memory architecture.

  • Affords portability.

  • Uses either a C or a FORTRAN compiler.


Mpi data types

MPI Data Types


Mpi program

MPI Program

# include <stdio.h>

# include <mpi.h>

main(int argc, char **argv)

{

//coding

MPI_Init(&argc, &argv);

//coding

MPI_Finalize();

//coding

}


Mpi init

MPI Init

O

1

4

Network

3

2


Mpi finalize

MPI Finalize

O

1

4

Network

3

2


Logging into linux

Logging into linux

  • To login to linux, login name is test, password is test.

  • Applications>system>terminal

  • [email protected]:~>pwd

    /home/test


Remote login to master node

Remote login to master node

  • rlogin 172.16.66.27 –l pp

    Password: asdfgh

  • vi <filename>.c

  • To go to insert mode press i

  • To come out of insert mode press Esc.


Saving and quiting

Saving and quiting

Suppose I had written vi urooj.c

  • :wsave file as urooj.c

  • :w ur1.csave file as ur1.c

  • :w /xy/urooj.csave file as urooj.c in /xy

  • :w /xy/ur.csave file as ur.c in /xy

  • :wqsave and quit

  • :wq ur1.csave as ur1.c and quit

  • :wq /xy/urooj.csave file as urooj.c in /xy and quit

  • :wq /xy/ur.csave file as ur.c in /xy and quit

  • :qquits only if work has been saved

  • :q!quits without saving


Compiling and running

Compiling and running

  • mpicc –o <executable file name> <source file name>

  • mpirun <executable file name>

  • mpirun –np <no> <executable file name>


  • Login