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

Faster stateq #230

Merged
merged 4 commits into from
May 18, 2017
Merged

Faster stateq #230

merged 4 commits into from
May 18, 2017

Conversation

tlunttil
Copy link
Contributor

Some rearrangement in stateq.c to make things faster and cleaner. Also removed some old unused code.

tlunttil added 2 commits May 11, 2017 23:51
Moved some more non-changing computations outside the
inner stateq loop. Also some general cleaning of
stateq.c.
Removed some old unused code.
@tlunttil
Copy link
Contributor Author

While I was testing this PR I noticed that with >1 threads results from different runs are not bit-level identical even if -t switch is used. This was not caused by this PR, also master branch has the same issue. I'll have a look tomorrow.

Removed schedule(dynamic) from levelpopulations() to remove randomness caused
by varying loop iteration allocations to different threads.
@tlunttil
Copy link
Contributor Author

The problem was dynamic omp scheduling in levelPops(). I removed it and now the results from different runs are identical when -t switch is used. There may be a slight performance penalty, but it's probably not enough to make any difference.

@allegroLeiden
Copy link
Contributor

Thanks for this, I'll have a look at it next week.

@allegroLeiden allegroLeiden merged commit 081d95e into lime-rt:master May 18, 2017
@allegroLeiden
Copy link
Contributor

Sorry I was so long checking this. Our bloody stupid story of disk failures which started last Nov continues unabated, it's been keeping me busy. :(

@tlunttil tlunttil deleted the faster_stateq branch July 6, 2017 14:30
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.

2 participants