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

Try-catch correctly with dawn-opt #862

Merged
merged 3 commits into from
Mar 20, 2020
Merged

Try-catch correctly with dawn-opt #862

merged 3 commits into from
Mar 20, 2020

Conversation

jdahm
Copy link
Contributor

@jdahm jdahm commented Mar 18, 2020

Technical Description

Correctly try-catch with dawn-opt. Involves removing incorrect dawn_unreachable(...) calls and replacing these with throws. The serialization functions should no longer use dawn_unreachable(...) in the future.

@jdahm jdahm requested a review from twicki March 18, 2020 05:26
@@ -195,10 +195,6 @@ DawnCompiler::lowerToIIR(const std::shared_ptr<SIR>& stencilIR) {
throw std::runtime_error("An error occurred.");

DAWN_LOG(INFO) << "Done with parallelization passes for `" << instantiation->getName() << "`";

if(options_.DumpStencilInstantiation) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was being printed twice to screen. Oops!

@jdahm jdahm requested a review from twicki March 18, 2020 18:15
@jdahm
Copy link
Contributor Author

jdahm commented Mar 18, 2020

launch jenkins

Copy link
Contributor

@twicki twicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jdahm jdahm merged commit 2983b84 into MeteoSwiss-APN:master Mar 20, 2020
@jdahm jdahm deleted the dawn_opt_try_catch_correctly branch March 20, 2020 01:54
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