![Page 1: Sharif University of technology, Parallel Processing course, ce647/ MPI & ADA Server Introduction By Shervin Daneshpajouh](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/1.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/2.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/3.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/4.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/5.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/6.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/7.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/8.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/9.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/10.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/11.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/12.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/13.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/14.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/15.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/16.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/17.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081519/56649ec75503460f94bd39ee/html5/thumbnails/18.jpg)
Sharif University of technology, Parallel Processing course, http://mehr.sharif.edu/~ce647/
Good luck