Skip to content

Commit 98ecb71

Browse files
committed
added function to get best numa node for ROC equipment
1 parent 7b2ca6a commit 98ecb71

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/ReadoutEquipmentRORC.cxx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// or submit itself to any jurisdiction.
1111

1212
#include <Common/Timer.h>
13+
#include <ReadoutCard/CardFinder.h>
1314
#include <ReadoutCard/ChannelFactory.h>
1415
#include <ReadoutCard/DmaChannelInterface.h>
1516
#include <ReadoutCard/Exception.h>
@@ -515,3 +516,12 @@ void ReadoutEquipmentRORC::finalCounters()
515516
}
516517
}
517518

519+
int getPreferredROCNumaNode(ConfigFile& cfg, std::string name) {
520+
try {
521+
std::string cardId = cfg.getValue<std::string>(name + ".cardId");
522+
return AliceO2::roc::findCard(cardId).numaNode;
523+
}
524+
catch (...) {
525+
}
526+
return -1;
527+
}

0 commit comments

Comments
 (0)