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
Refining support for ITTNotify #2473
Conversation
- making itt task API more efficient (by caching the itt string for the task name) - flyby: explicitly defining all necessary base_lco_with_value types
hpx/runtime/actions/basic_action.hpp
Outdated
template <> HPX_ALWAYS_EXPORT \ | ||
char const* get_action_name<action>(); \ | ||
template <> HPX_ALWAYS_EXPORT \ | ||
util::itt::string_handle const& get_action_name_itt<action>(); \ |
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.
Can we just factor the get_action_name_itt
declaration out? this would avoid the duplication of the code in those macros.
hpx/runtime/actions/basic_action.hpp
Outdated
return BOOST_PP_STRINGIZE(actionname); \ | ||
} \ | ||
template<> HPX_ALWAYS_EXPORT \ | ||
util::itt::string_handle const& get_action_name_itt<action>() \ |
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.
Same as below
HPX_EXPORT void itt_task_end(___itt_domain const*); | ||
|
||
HPX_EXPORT ___itt_domain* itt_domain_create(char const*); | ||
HPX_EXPORT ___itt_string_handle* itt_task_handle_create(char const*); | ||
HPX_EXPORT ___itt_string_handle* itt_string_handle_create(char const*); |
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.
do we have some minimum itt version we support?
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.
None we could check at compile time. The Intel itt_notify.h has the same version number in it for years, even while the API itself has changed significantly.
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.
Should we document the supported version somewhere?
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 don't even know what version is the correct one... But using the newest VTune is probably a safe bet ;)
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.
Fair enough ...
@sithhell Your review comments have been addressed. |
This patch reduces the overheads introduced when using ITTNotify to tie in VTune (or other tools).