anubhavmaheshwari0805 / HPCLAB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HPCLAB

Note : For compiling the program use the command -

gcc pgm_name.cpp -fopenmp

ex-01.cpp : Write an OpenMP program to print "Hello World" with thread number and total number of thread used. CODE

ex-02.cpp : Write an OpenMP program to print message according to even and odd id number of thread. CODE

ex-03.cpp : SAXPY stands for Single Precision A*X+Y , a function in standard basic linear algebra subroutine. It is a combination of scalar multiplication and vector addition represented as Z->A*X+Y. Write an OpenMP program for SAXPY. CODE

ex-04.cpp : Write an OpenMP program to multiply two 2D matrix and display them. CODE

01.cpp : Given an n*n matrix arr and a vector vec of length n, their product res=arr*vec . Write a program to implement the multiplication using OpenMP PARALLEL directive. CODE

02.cpp : Consider a scenario where a person visits a supermarket for shopping. He purhases various items in different sections such as clothing, gaming, grocery, stationary. Write an OpenMP program to process his bill parallelly in each section and display the final amount to be paid. CODE

03.cpp : Consider a person named X on the earth, to find its accurate position on the globe, we require the value of pi. Write a program to compute value of pi function by numerical integration using OpenMP parallel section. CODE

04.cpp : Design, Develop and run a multithreaded program to generate and print Fibonacci series, one thread must generate the series upto number and other thread must print them. Ensure proper synchronization. CODE

05.cpp : University awards gold medal to the student who has scored highest. Write an OpenMP program to find the student with highest cgpa. CODE

06.cpp : Assume you have n robots which pick mangoes in a farm. Write a program to calculate the total number of mangoes picked by n robots parallely using MPI. CODE

07.cpp : Design a program that implements application of MPI Collective Communications. CODE

08.cpp : Implement Cartesian Virtual Topology in MPI. CODE

09.cpp : Design a MPI program that uses blocking send/receive routines and nonblocking send/receive routines. CODE

10.cpp : Multiply two square matrices (1000, 2000 or 3000 dimensions). Compare the performance of a squential and parallel algorithm using openMP. CODE

About


Languages

Language:C++ 100.0%