Skip to content

Commit 69ce205

Browse files
committed
fix getPreferredNumaNode when no ReadoutCard
1 parent b080703 commit 69ce205

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/mainReadout.cxx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,10 +1029,12 @@ int Readout::configure(const boost::property_tree::ptree& properties)
10291029
// equipment-specific method to get preferred NUMA node can not be implemented in a derived class method
10301030
// because we need info here in the equipment base class before allocating the memory
10311031
// call corresponding external function
1032-
extern int getPreferredROCNumaNode(ConfigFile&, std::string);
1033-
if (!cfgEquipmentType.compare("rorc")) {
1034-
numaNode = getPreferredROCNumaNode(cfg, kName);
1035-
}
1032+
#ifdef WITH_READOUTCARD
1033+
extern int getPreferredROCNumaNode(ConfigFile&, std::string);
1034+
if (!cfgEquipmentType.compare("rorc")) {
1035+
numaNode = getPreferredROCNumaNode(cfg, kName);
1036+
}
1037+
#endif
10361038
} else {
10371039
// try to convert value to int
10381040
int n;

0 commit comments

Comments
 (0)