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

O0 used for debugging #233

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

O0 used for debugging #233

wants to merge 1 commit into from

Conversation

bmyerz
Copy link
Member

@bmyerz bmyerz commented Oct 14, 2015

It seems that things build fine with O0, so why not use it for debugging instead of O1?

@nelsonje
Copy link
Member

We chose -O1 so that we'd still get inlining in debug mode.

I thought there used to be build/correctness problems; that may have been with an old compiler or with an incorrect use of includes, since these days things seem to run okay There is a significant performance difference, as you can see from this 15-node, 8-core-per-node demo-gups4 run (both sizeA and sizeB 2^30):

optimization level GUPS
-O0 0.118
-O1 0.392
-O3 0.442

I think that performance gap is too large to make -O0 the default in debug mode, but we could add a switch to the build.

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