Reference no: EM132509313
Course: Parallel and Distributed Programming
Assignment Number: 2 OpenMP and MPI
Assessment Criteria
Please state the assessment criteria applied to this assignment, such as:
• Correctness of the work.
• Presentation, including compliance with the specified file format.
• Evidence of critical thinking and analysis.
• Originality, quality and thoroughness of the work.
• Research correct academic approach.
• Proper treatment of sources.
• Demo of code will be in lab, failing to show work in lab receive deduction of 50% of total assignment grade.
Academic Dishonesty: All of your assignments need to represent your own effort. Assignments should be done without consultation with other students and you should not share your source code with others. Any assignment submitted that is essentially the same, as someone else's will not be accepted. ALL matching assignments will receive 0 credits.
Your task is to convert the Java Prime Parallel program attached, the idea of the solution was to split the integer limit into many tasks of size 1000 and create job queue, where a thread pool scans the job pool and work each task, at the end the sum of all results are added up and reported.
Make sure to include timing to your code, you need to submit two solutions using MPI and OpenMP:
1. OpenMP C file and results of execution
2. MPI C file and results of execution
Attachment:- parallel and distributed programming.zip