Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By...

18
Sharif University of technology, Parallel Processing course, htt p://mehr.sharif.edu/~ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh

Transcript of Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By...

Page 1: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

MPI & ADA Server Introduction

By Shervin Daneshpajouh

Page 2: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Outline

MPI What is MPI A brief introduction of MPI

Installing MPI on windows MPI on ADA Server

Connecting ADA server Compiling your MPI source code on ADA server Running your MPI program on ADA server

Page 3: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Outline

MPI What is MPI A brief introduction of MPI

Installing MPI on windows MPI on ADA Server

Connecting ADA server Compiling your MPI source code on ADA server Running your MPI program on ADA server

Page 4: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Outline

MPI What is MPI A brief introduction of MPI

Installing MPI on windows MPI on ADA Server

Connecting ADA server Compiling your MPI source code on ADA server Running your MPI program on ADA server

Page 5: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Installing MPI on Windows

Downloading MPICH http://mehr.sharif.edu/ce647/materials/mpi/

mpich.nt.1.2.5.exe The steps to creating MPICH project with VC

6

Page 6: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Outline

MPI What is MPI A brief introduction of MPI

Installing MPI on windows MPI on ADA Server

Connecting ADA server Compiling your MPI source code on ADA server Running your MPI program on ADA server

Page 7: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Connecting to ADA server

Downloading SSH ftp://cabinet.ce.sharif.edu http://sina.sharif.ir/SSHWinSecureShell24.exe

Installing SSH Running SSH

Page 8: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Connecting to ADA server

Host Name: ada.ce.sharif.edu

Username CE Username user01

Password CE Password

Page 9: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Running Your Program On ADA server

Lamboot –v <hostfile> Please Do not run this command if LAMMPI is

running

Page 10: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Running Your Program On ADA server

Lamboot –v <hostfile> Please Do not run this command if LAMMPI is

running Lamnodes

Print List active nodes (computers)

Page 11: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Running Your Program On ADA server

Lamboot –v <hostfile> Please Do not run this command if LAMMPI is

running Lamnodes

Print List active nodes (computers) MPICC –o <outputfile> <sourcefile> lmpi

Compile your source code and make executable file

Page 12: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Running Your Program On ADA server

Lamboot –v <hostfile> Please Do not run this command if LAMMPI is

running Lamnodes

Print List active nodes (computers) MPICC –o <outputfile> <sourcefile> lmpi

Compile your source code and make executable file

Copy your file on all nodes

Page 13: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Copy your file on all nodes

ADA ServerHttp://ada.ce.sharif.edu

Workstation

Your computer

Connecting to server using SSH

client01

client02

client024

Connecting to Client01 using SFTP

SFTP

SFTP

Page 14: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Copy your file on all nodes SSH

ssh <client name> Ssh <client IP> Cd Pwd Mkdir Exit Rmdir Rm ls

SFTP Put Get

ADA ServerHttp://ada.ce.sharif.edu

Workstation

Your computer

Connecting to server using SSH

client01

client02

client024

Connecting to Client01 using SFTP

SFTP

SFTP

Page 15: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Running Your Program On ADA server

Lamboot –v <hostfile> Please Do not run this command if LAMMPI is running

Lamnodes Print List active nodes (computers)

MPICC –o <outputfile> <sourcefile> lmpi Compile your source code and make executable file

Copy your file on all nodes MPIRUN –NP 4 <program name>

Page 16: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Running Your Program On ADA server

Lamboot –v <hostfile> Please Do not run this command if LAMMPI is running

Lamnodes Print List active nodes (computers)

MPICC –o <outputfile> <sourcefile> lmpi Compile your source code and make executable file

Copy your file on all nodes MPIRUN –NP 4 <program name> Lamclean -v

Remove all running tasks

Page 17: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Running Your Program On ADA server Lamboot –v <hostfile>

Please Do not run this command if LAMMPI is running Lamnodes

Print List active nodes (computers) MPICC –o <outputfile> <sourcefile> lmpi

Compile your source code and make executable file Copy your file on all nodes Lamclean -v

Remove all running tasks Wipe –v hf

Unloading LAMMPI Please Do not run this command when other people using

the server

Page 18: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh.

Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/

Good luck