-
Notifications
You must be signed in to change notification settings - Fork 128
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 a template instantiation issue with GCC 10 in dataman serializer #3155
Fix a template instantiation issue with GCC 10 in dataman serializer #3155
Conversation
endif() | ||
if(DATASPACES_FOUND) | ||
set(ADIOS2_HAVE_DataSpaces TRUE) | ||
if(MPI_FOUND) |
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.
@JasonRuonanWang does DataSpaces not work without MPI?
The Engine.DataMan.DataManEngineTest.1D.Serial
test seems to suggest so.
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.
ah wait, I mismatched DataMan
and DataSpaces
.
I guess this change in CMake could better have been a separate PR :)
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.
ah wait, I mismatched
DataMan
andDataSpaces
.
I guess this change in CMake could better have been a separate PR :)
In principle, yes. But cmake does not pass if DataSpaces libraries are found and MPI is disabled. This is something that must be fixed anyway in order to reproduce the error. I could have opened another PR but it would just waste another few hours before getting the problem solved. Given the amount of work I have on my desk, I'd rather compromise on these trivial things, unless someone else is willing to help separate the PRs and get them merged in a perfect way.
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.
Sure, sounds good. I was just confused for a sec, sorry for that :)
@chuckatkins This PR needs to be pulled into master too. Thanks. |
Should |
Fixes #3151
It seems that GCC 10 handles template instantiation differently from previous GCC versions, and as a result, some template instantiation in DataMan serializer failed to pick up the correct template instantiation. This PR changed the affected template instantiation to simple function overloading.