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

Added metadata callback to tools interface #3711

Merged
merged 3 commits into from
Jan 12, 2021

Conversation

DavidPoliakoff
Copy link
Contributor

Very simple metadata callback, but functional nonetheless. Allows users to declare metadata with a key,value call

@dalg24
Copy link
Member

dalg24 commented Jan 6, 2021

Would you please give a motivating example for being able to declare meta data?

@DavidPoliakoff
Copy link
Contributor Author

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

Copy link
Member

@dalg24 dalg24 left a 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

@DavidPoliakoff
Copy link
Contributor Author

@dalg24 #3627 is bigger, lets wait on that one to merge this

Conflicts:
	core/src/impl/Kokkos_Profiling.hpp
	core/unit_test/CMakeLists.txt
@DavidPoliakoff
Copy link
Contributor Author

Retest this please

Copy link
Contributor

@masterleinad masterleinad left a 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");
Copy link
Contributor

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");

Copy link
Contributor Author

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

@dalg24 dalg24 merged commit 8fe295f into kokkos:develop Jan 12, 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.

None yet

4 participants