-
Notifications
You must be signed in to change notification settings - Fork 91
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
Fix GCC 7.5 issue with distributed::Matrix #1696
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.
could you paste the error message in the pr?
It might be helpful for searching when we face the same issue in other places.
I think this is the important part:
Somehow the missing |
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.
LGTM!
@@ -27,8 +27,24 @@ namespace gko { | |||
* @ingroup xstd | |||
*/ | |||
namespace xstd { | |||
namespace detail { | |||
|
|||
|
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.
Maybe add some documentation on what the intended use is.
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.
There is no use for users for this. On the developer side it's used directly below, so I don't think it requires documentation.
This works around a (likely) GCC 7.5 bug when using std::void_t.
fce6ef3
to
ca3f152
Compare
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1696 +/- ##
===========================================
- Coverage 90.24% 89.96% -0.28%
===========================================
Files 763 763
Lines 62841 62877 +36
===========================================
- Hits 56713 56570 -143
- Misses 6128 6307 +179 ☔ View full report in Codecov by Sentry. |
This merge uses the xstd::void_t again in is_matrix_type_builder. I think there is a bug in GCC 7.5 bug when std::void_t is used for is_matrix_type_builder, although I wasn't able to reproduce it. Related PR: ginkgo-project#1696
This PR uses the xstd::void_t again in is_matrix_type_builder. I think there is a bug in GCC 7.5 bug when std::void_t is used for is_matrix_type_builder. I wasn't able to reproduce this issue to actually find out if it's a bug or not, but since this is not an issue in newer gcc version, I don't think it's worth to put more effort into it.