0% found this document useful (0 votes)
2 views

Installation of Open Source Terminal Emulator

This document provides a step-by-step guide for installing the Open Source terminal emulator PuTTY. It includes instructions on downloading PuTTY, connecting to a server using an IP address and port, and executing basic C programs using OpenMP and MPI. The document also outlines how to compile and execute these programs in the terminal.

Uploaded by

sree191612
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Installation of Open Source Terminal Emulator

This document provides a step-by-step guide for installing the Open Source terminal emulator PuTTY. It includes instructions on downloading PuTTY, connecting to a server using an IP address and port, and executing basic C programs using OpenMP and MPI. The document also outlines how to compile and execute these programs in the terminal.

Uploaded by

sree191612
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Installation of

Open Source
terminal Emulator

~ Dr. Anwar A Sheikh


Step 1: open https://putty.org/
step 2: click on download
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.htm
l

Click on
this
Step 3: Click on the given highlighted part to
download putty.exe 64-bit x86
Step 4:Type Putty.exe in
search and open it

Type the ip 192.168.2.22 and change the


port by 9922 then click on open after that
another popup will open click on accept it .
Step 5: just copy your HPC id and right click once on
terminal or type your id

step 6: copy your password again right click once on


terminal or type your password and press enter button

Now you are free to type your programs on the terminal via
editor nano/vim (copy and right click) save ctrl +O then Enter
Ctrl X to come out of Editor
Example: basic C program in OMP
EXAMPLE: Basic MPI program
#include <stdio.h>
#include <stdio.h> #include <mpi.h>
#include <omp.h>
int main(int argc, char** argv){
int main() { int process_Rank, size_Of_Cluster;
#pragma omp parallel
{ MPI_Init(&argc, &argv);
i n t t h r e a d _ i d = o m p _ g e t _ t h re a d _ n u m ( ) ; MPI_Comm_size(MPI_COMM_WORLD,
&size_Of_Cluster);
/ / Ta s k 1 : Pe r f o rm e d i n d e p e n d e n t l y b y e a c h t h re a d MPI_Comm_rank(MPI_COMM_WORLD,
p r i n t f ( " T h r e a d % d : Pe r f o rm i n g Ta s k 1 \ n " , t h re a d _ i d ) ; &process_Rank);

/ / S y n c h r o n i z e a l l t h re a d s a t t h i s p o i n t printf("Hello World from process %d of %d\n",


# p r a g m a o m p b a rr i e r process_Rank, size_Of_Cluster);

/ / Ta s k 2 : O n l y s t a r t s a f t e r a l l t h re a d s h a v e fi n i s h e d Ta s k 1 MPI_Finalize();
p r i n t f ( " T h re a d % d : Pe r f o rm i n g Ta s k 2 \ n " , t h re a d _ i d ) ;
return 0;
}
}
return 0;
}
To compile

To Execute Mpi
program

To Compile Omp program

To Execute Omp Program


THANKS

You might also like