This directory contains programs for the Advanced Computing with Python and GCP subject (subject code UDS23402J).
- Linux environment based on Debian (WSL can be used on Windows)
- GCC compiler
- OpenMPI or MPICH for MPI program
To run these programs, ensure you have the following packages installed:
sudo apt update && sudo apt install gcc mpich -yThis experiment involves setting up a project in Google Cloud Console and exploring essential cloud computing concepts such as IAM Roles, Cloud Storage, VPC, VM Instances, Zones, and Firewall Security.
This program demonstrates creating and printing "Hello" messages from multiple parallel threads using OpenMP.
gcc program_2.c -fopenmp -o omp_program./omp_programThis program demonstrates inter-process communication using MPI, where one process sends a message to another process.
mpicc program_3.c -o mpi_programmpirun -np 2 ./mpi_programThis program demonstrates the calculation of multiplicative inverse matrices using Python.
python3 program_4.pyOriginal Matrix (A):
[[1 2]
[3 4]]
Inverse of Matrix (A^-1):
[[-2. 1. ]
[ 1.5 -0.5]]
Dot Product of Matrix (A) and its Inverse (A^-1):
[[1.0000000e+00 0.0000000e+00]
[8.8817842e-16 1.0000000e+00]]
This program demonstrates the conversion of a list to an array using Python.
python3 program_5.pyOriginal list: [2, 3, 4, 6]
Datatype: <class 'list'>
Numpy Array: [2 3 4 6]
Datatype: <class 'numpy.ndarray'>
This program demonstrates the creation of an ndarray from a list of tuples of integers using Python.
python3 program_6.pyOriginal list: [(1, 2, 3), (4, 5, 6)]
Datatype: <class 'list'>
Numpy Array:
[[1 2 3]
[4 5 6]]
Datatype: <class 'numpy.ndarray'>
Print your name using the 'print' function in python.
python3 program_7.pyHello, I am Saurabh Mishra