Skip to content

Commit

Permalink
add a new activity type in pytorch (pytorch#758)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#758

Differential Revision: D45126544

fbshipit-source-id: 7a5b54d98bf51640489b6e5b328820920985b73b
  • Loading branch information
fenypatel99 authored and facebook-github-bot committed May 10, 2023
1 parent c51f346 commit cd0c4e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libkineto/include/ActivityType.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ enum class ActivityType {

// Optional Activity types
GLOW_RUNTIME, // host side glow runtime events
MTIA_RUNTIME, // host side MTIA runtime events
CUDA_PROFILER_RANGE, // CUPTI Profiler range for performance metrics
MTIA_CCP_EVENTS, // MTIA ondevice CCP events
HPU_OP, // HPU host side runtime event
Expand Down
1 change: 1 addition & 0 deletions libkineto/src/ActivityType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ static constexpr std::array<ActivityTypeName, activityTypeCount + 1> map{{
{"python_function", ActivityType::PYTHON_FUNCTION},
{"overhead", ActivityType::OVERHEAD},
{"glow_runtime", ActivityType::GLOW_RUNTIME},
{"mtia_runtime", ActivityType::MTIA_RUNTIME},
{"cuda_profiler_range", ActivityType::CUDA_PROFILER_RANGE},
{"mtia_ccp_events", ActivityType::MTIA_CCP_EVENTS},
{"hpu_op", ActivityType::HPU_OP},
Expand Down

0 comments on commit cd0c4e6

Please sign in to comment.