-
Notifications
You must be signed in to change notification settings - Fork 4
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
156: footprint types that are not serializable #157
Conversation
I'd really like to see that |
Yes, I have seen it, but I was unable to get it to work so far (various errors at the dispatch level). Let me push a cleaned up example for easier discussion. |
5cd2344
to
20261d4
Compare
20261d4
to
e91b3dd
Compare
478e554
to
9b85a23
Compare
9b85a23
to
cc0f0d4
Compare
de42001
to
f650ecc
Compare
Ok, I've gotten the type trait stuff working for the |
da084ef
to
739b391
Compare
static bool firstCall = true; | ||
if (firstCall) { | ||
firstCall = false; | ||
// optionally print a warning here |
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.
We need to decide what to do here.
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.
hard to say how much additional value a separate warning would provide, maybe expanding the first (unconditional) print on the entrance would be sufficient (e.g. adding typeid
)?
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.
My thinking is that we may want a printed warning here in much broader circumstances than when we have full debug printing turned on. Perhaps aligned with CMAKE_BUILD_TYPE=Debug
or such.
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.
Regardless, both this debug print and the ones below should probably have a name from typeid
incorporated.
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 agree that printing typeid
would be good here.
I just tested that this passes all the footprinting tests in vt. |
@PhilMiller this looks good to me, I can see that the PR check is complaining about signatures missing (in your commits) - feel free to force push the amendments @lifflander this probably requires you review as a third party edit: after giving it a second thought, this probably needs an explicit mention in the documentation, because now user will always be able to footprint stuff, but might be unaware about a silent fallback to this approach |
38182ae
to
151b1c8
Compare
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.
Overall this looks good. A few minor points about formatting fixes
static bool firstCall = true; | ||
if (firstCall) { | ||
firstCall = false; | ||
// optionally print a warning here |
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 agree that printing typeid
would be good here.
…that doesn't have a serializer
… typedef instead of struct
0b4e817
to
0d07cd6
Compare
fixes #156
current pain points in
vt
:Open MPI types
std::list
iteratorsnote: