Question: I am using visual studio 2 0 2 2 and C + + code for this assignment and i need help. Please display the outputs

I am using visual studio 2022 and C++ code for this assignment and i need help. Please display the outputs for each proccesses. Also answer the questions and complete the table with filling in the execution times for each one.
Final Assignment: you will be given a final project, where you compare the performance of the sieve of Eratosthenes with varying amounts of threads/processes and different sizes of workloads.
This assignment will consist of the following parts:
The multi-threaded sieve of the Eratosthenes program
MPI benchmarks
Answer these questions (you can be as short or as detailed as you like):
a. Where do you think the "sweet spot" is for thread count? Alternatively, at what point does the addition of more threads result in diminishing returns?
b. Where do you think the "sweet spot" is for workload size? Alternatively, at what maximum value (max value to search for prime numbers) does it become beneficial to run the sieve in parallel?
Answer this additional question with a few sentences: Between this and the OpenMP-based sieve from the midterm, what can you say are the advantages and disadvantages of both OpenMP and MPI? You may consider the following:
a. Which was easiest to program?
b. Which one requires (or benefits from) specific hardware?
You will be benchmarking the sieve made using MPI. Start with the following table, consisting of 12 entries. You may expand the table to include different thread counts or maximum values.
\table[[MPI Sieve,\table[[Primes up to],[1,000(1e3)10,000(1e4)100,000(1e5)1,000,000(1e6) with mpi sieve of 2 processes, 4 processes, and 8 processes.
I am using visual studio 2 0 2 2 and C + + code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!