Skip to content

Commit

Permalink
Hw doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lhuang-pvamu committed Oct 1, 2018
1 parent 44a7348 commit e4801f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/homework/homework1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@ Parallel Computing Homeowrk 1
A prime pair or twin prime is a prime number that has a prime gap of two, in other words, the difference between the two prime numbers are two, for example the twin prime pair (41, 43). You need to write an OpenMP program to find the total number of prime pairs between 2 and 50,000,000. Your grade will be not only determined by the correctness of the total number, but also depends on your program performance. Your program should print the number of prime pairs and the total execution time of your program. Report the speedup of your program using 1, 2, 4, and 8 threads respectively.

Build your code::

cd homework/hw1
make
Run your sequential version::

./prime

Run your OpenMP parallel version::

./prime_omp

Run both of them::

make run


You need to revise the prime.cpp and prime_omp.cpp files respectively to create a sequential program and an OpenMP parallel program to complete the homework.

The following is the grading percentage for evaluating your program.::

Correctness: 60%
Performance: 40%

Expand Down

0 comments on commit e4801f1

Please sign in to comment.