Skip to content

Commit 4ef88f7

Browse files
committed
Add HardwareResourcesInformation printout to edmProvDump
1 parent 0c97a80 commit 4ef88f7

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

IOPool/Common/bin/EdmProvDump.cc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,18 @@ namespace {
7979
const_iterator end() const { return children_.end(); }
8080

8181
void print(std::ostream& os) const {
82-
// TODO: add printout of HardwareResourcesDescription
82+
auto const& hwresources = config_.hardwareResourcesDescription();
8383
os << config_.processName() << " '" << config_.releaseVersion() << "' [" << simpleId_ << "] ("
84-
<< config_.parameterSetID() << ")" << std::endl;
84+
<< config_.parameterSetID() << ")"
85+
<< " (" << hwresources.microarchitecture;
86+
if (not hwresources.selectedAccelerators.empty()) {
87+
os << "; " << hwresources.selectedAccelerators.front();
88+
for (auto it = hwresources.selectedAccelerators.begin() + 1; it != hwresources.selectedAccelerators.end();
89+
++it) {
90+
os << "," << *it;
91+
}
92+
}
93+
os << ")" << std::endl;
8594
}
8695

8796
void printHistory(std::string const& iIndent = std::string(" ")) const;

0 commit comments

Comments
 (0)