Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated to allow for fine-grained parallelism via OpenMP. #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

updated to allow for fine-grained parallelism via OpenMP. #1

wants to merge 4 commits into from

Conversation

quattro
Copy link

@quattro quattro commented Jan 20, 2015

The total number of threads can be controlled by a new program argument "-n". The default value is the
total number of threads available to the system. This can easily be changed by altering the assignment
at the top of the main.cpp file.

For comparison, when running on the sample data with 1 thread:

real 0m23.472s
user 0m19.635s
sys 0m0.024s

and with 8 threads:

real 0m6.474s
user 0m26.259s
sys 0m0.025s

The important metric is the "real" time. The user time should be about the same, as it is the summation
across all threads. The final estimates are exactly the same (we should do some more complicated
examples; however, this looks very promising for now).

@theboocock
Copy link

This looks great, I will give it a test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants