-
Notifications
You must be signed in to change notification settings - Fork 443
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
Added metadata callback to tools interface #3711
Added metadata callback to tools interface #3711
Conversation
Would you please give a motivating example for being able to declare meta data? |
Many tools provide an ability to filter a pile of profiles based on some metadata fields (TAU, Caliper, I'd be astonished if Jonathan doesn't have something in Timemory). "Only show me the profiles that come from runs built with GCC." This gives our users a way to express such metadata without needing to link those tools in their application |
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 but probably conflicts with #3627
Conflicts: core/src/impl/Kokkos_Profiling.hpp core/unit_test/CMakeLists.txt
Retest this please |
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.
Looks reasoanable to me.
@@ -85,6 +85,7 @@ int main(int argc, char** argv) { | |||
Kokkos::Profiling::stopSection(sectionId); | |||
Kokkos::Profiling::destroyProfileSection(sectionId); | |||
Kokkos::Profiling::markEvent("profiling_event"); | |||
Kokkos::Tools::declareMetadata("dogs", "good"); |
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.
This is incorrect. It should be:
Kokkos::Tools::declareMetadata("dogs", "very-good");
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.
TRUE. THE GOODNESS OF DOGS SHALL NOT BE UNDEREMPHASIZED
Very simple metadata callback, but functional nonetheless. Allows users to declare metadata with a key,value call