Skip to content

Commit

Permalink
add MTIA device properties
Browse files Browse the repository at this point in the history
Differential Revision: D68873647
  • Loading branch information
fenypatel99 authored and facebook-github-bot committed Jan 31, 2025
1 parent daa5648 commit 44bb2f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libkineto/src/CuptiActivityProfiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,11 @@ void CuptiActivityProfiler::processTraceInternal(ActivityLogger& logger) {
}
for (const auto& session : sessions_) {
if (auto props = session->getDeviceProperties(); !props.empty()) {
device_properties.push_back(props);
if (std::find(
device_properties.begin(), device_properties.end(), props) ==
device_properties.end()) {
device_properties.push_back(props);
}
}
}
logger.handleTraceStart(
Expand Down

0 comments on commit 44bb2f3

Please sign in to comment.