Question
TASK 1: Install a software that can work with OpenMP. For Windows, you may choose Dev C++, and for Mac, you may choose gcc. Submit
TASK 1: Install a software that can work with OpenMP. For Windows, you may choose Dev C++, and for Mac, you may choose gcc. Submit a screenshot of the software after downloading it.
TASK 2: Write a hello world program with the default number of threads on your laptop. Submit the code and a screenshot of the run.
TASK 4: Write a program that enquires the number of processors (cores) and the number of threads on your laptop and prints out the values. Submit the code and a screenshot of the run.
TASK 5: Write a program with a meaningful loop calculation that uses a parallelized loop. Explain the way the loop works and show it by the output of the program. Measure the time taken by your code in seconds. Submit the code, the explanation and a screenshot of the run.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started