Skip to content

O0 used for debugging#233

Open
bmyerz wants to merge 1 commit intomasterfrom
bmyerz/debug-optimize-level
Open

O0 used for debugging#233
bmyerz wants to merge 1 commit intomasterfrom
bmyerz/debug-optimize-level

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