Check wiki for more.
-
Write a program to sort an array on n elements using both sequential and parallel merge sort(using Section). Record the difference in execution time.
-
Estimate the value of pi using:
$$4\sum_{k=0}^{\infty} \frac{(-1)^k}{2k + 1}$$ Parallelize the code by removing loop carried dependency and record both serial and parallel execution times. (Implemented using Monte Carlo Method - Refer Page 18) -
Write an OpenMP program that divides the Iterations into chunks containing 2 iterations, respectively (OMP_SCHEDULE=static,2). Its input should be the number of iterations, and its output should be which iterations of a parallelized for loop are executed by which thread. For example, if there are two threads and four iterations, the output might be the following:
a. Thread 0 : Iterations 0 −− 1
b. Thread 1 : Iterations 2 −− 3
-
Write a program to calculate n Fibonacci numbers using Parallel Directive. Demonstrate elimination of the race condition using Schedule directive.
-
Write a program to find the prime numbers from 1 to n employing parallel for directive. Record both serial and parallel execution times.
-
Write a program to perform Parallel Vector Addition.
-
Write a program calculate the sum of first 100 Numbers. (Using critical directive)
-
Write an MPI program to demonstrate MPI_Send and MPI_Recv.
-
Write an MPI program to demonstrate deadlock using point to point communication.
-
Write an MPI program to avoid deadlock by altering the call sequence.
-
Write an MPI program to demonstrate avoidance of deadlock by non-blocking calls.
-
Write an MPI program to demonstrate avoidance of deadlock by using MPI_Sendrecv.
-
Write an MPI program to demonstrate the synchronization between two phases of program.
-
Write an MPI program to demonstrate Broadcast operation.
-
Write an MPI program to demonstrate MPI_Gather.
-
Write an MPI program to demonstrate to MPI_Scatter.
-
Write an MPI program to demonstrate to demonstrate MPI_Scatter and MPI_Gather.
-
Write an MPI program to demonstrate MPI_Reduce(MPI_MAX, MPI_MIN, MPI_SUM, MPI_PROD).
-
Write an MPI program to demonstrate MPI_Allreduce (MPI_MAX, MPI_MIN, MPI_SUM, MPI_PROD).
Note - Sometimes you may be asked to send an array instead of an integer. Check Part-B/extra-send-array.c to learn how