https://github.com/animator/mpi-codes
High Performance Computing using MPI Workshop (IIT Kanpur, 2013) Codes
https://github.com/animator/mpi-codes
Last synced: 2 months ago
JSON representation
High Performance Computing using MPI Workshop (IIT Kanpur, 2013) Codes
- Host: GitHub
- URL: https://github.com/animator/mpi-codes
- Owner: animator
- Created: 2020-10-26T21:38:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-23T05:37:46.000Z (over 4 years ago)
- Last Synced: 2025-01-26T18:30:29.877Z (4 months ago)
- Language: C
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mpi-codes
High Performance Computing using MPI Workshop Slides - [Link](https://www.slideshare.net/ankitmahato/hpc-workshop)
Compile code using:
```
mpicc filename.c
```Execute it using:
```
mpirun -np NUM_OF_PROCS ./a.out
```| Code | Description |
|--|--|
| [helloworld](https://github.com/animator/mpi-codes/blob/main/helloworld.c) | The most basic program which prints "Hello world" from all the processes |
| [hello_send_recv](https://github.com/animator/mpi-codes/blob/main/hello_send_recv.c) | Illustrates the use of MPI_Send and MPI_Recv functions. The main process sends a message, “Hello, world”, to the process whose rank is 1, and after receiving the message, the process prints the message along with its rank |
| [vector_addition](https://github.com/animator/mpi-codes/blob/main/vector_addition.c) and [vector_add](https://github.com/animator/mpi-codes/blob/main/vector_add.c) | Break two vectors in NPROC parts, add the elements in parallel, then rejoin |
| [pi](https://github.com/animator/mpi-codes/blob/main/pi.c) | Pi calculation |
| [mpi_prime](https://github.com/animator/mpi-codes/blob/main/mpi_prime.c) | To check for the occurance of Prime number |