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

Backport performance fix for C++17 #1618

Merged
merged 6 commits into from
Mar 25, 2021

Conversation

havogt
Copy link
Contributor

@havogt havogt commented Mar 23, 2021

No description provided.

havogt and others added 5 commits March 23, 2021 11:06
2 tests disabled:
- boundary_conditions_gpu because of GridTools#1522
- test_tuple.cu conversion constructor for Clang 11.0.0 because of GridTools#1615
With C++17, `as_const` was added into the standard and if `as_const` is not called qualified, we end up with `std::as_const` (which is also a better match) in most cases because there is some `std` inside one of the template arguments.

By qualifying `as_const`, performance is fixed.

For GTBench, performance is identical with `-std=c++14` and `-std=c++17` now.
@havogt
Copy link
Contributor Author

havogt commented Mar 24, 2021

launch jenkins

1 similar comment
@havogt
Copy link
Contributor Author

havogt commented Mar 25, 2021

launch jenkins

@havogt havogt merged commit c937dd5 into GridTools:release_v2.0 Mar 25, 2021
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