-
Notifications
You must be signed in to change notification settings - Fork 21
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
Benchmark Conversion of Ptrdist/ft #56
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you left out a checked block in main. Otherwise looks good.
@@ -89,30 +91,30 @@ main(int argc, _Array_ptr<const char*> argv : count(argc) ) | |||
} | |||
|
|||
if(debug) | |||
{ | |||
_Unchecked { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to introduce a checked scope after the argument manipulation is done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even better, I added a checked scope for main
, and an Unchecked scope just for the argument manipulation
Oh I really didn't mean for these commits to be on top of the other branch. I'm going to make your requested changes, rebase, and force push. |
3a50924
to
1931e28
Compare
So this compiles, but something's evidently not correct as we're getting exceptions at run-time. Going to investigate them now. |
So even the unchecked version has the bug I found. Hey, we found a bug! |
Cool! |
So, the issue is related to me increasing the arguments for the large inputs.
With my larger inputs (and asserts disabled, as they are by default in the test suite or Release builds), the unchecked version passes its test, and produces the correct output.
With asserts enabled, the unchecked version fails with an assertion error.
With the conversion to checked C, it always fails, regardless of whether asserts are enabled or not.
This is a result, right?
… On 6 Jun 2017, at 4:14 pm, David Tarditi ***@***.***> wrote:
Cool!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#56 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAA41CmsmD1wk3xygKPFYsabHdpNy8VAks5sBd1lgaJpZM4Nw4q5>.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I need to work out what to increase |
This fully converts Ptrdist/ft.
The execution error alluded to in #32 is fine to ignore - it's to do with
#define
d constants and the large input size. Given we're back to using the regular input size for benchmarking, I'm not worried right now about it.I should at some point add in a dynamic_check.