CMS 3D CMS Logo

TritonOneEDAnalyzer.h
Go to the documentation of this file.
1 #ifndef HeterogeneousCore_SonicTriton_TritonOneEDAnalyzer
2 #define HeterogeneousCore_SonicTriton_TritonOneEDAnalyzer
3 
9 
10 #include <string>
11 
12 template <typename... Capabilities>
13 class TritonOneEDAnalyzer : public SonicOneEDAnalyzer<TritonClient, Capabilities...> {
14 public:
17  ts->addModel(this->clientPset_.template getParameter<std::string>("modelName"),
18  this->clientPset_.template getParameter<edm::FileInPath>("modelConfigPath").fullPath());
19  }
20 
21  //destroy client before destructor called to unregister any shared memory before TritonService shuts down fallback server
22  virtual void tritonEndJob() {}
23  void endJob() final {
24  tritonEndJob();
25  this->client_.reset();
26  }
27 };
28 
29 #endif
void addModel(const std::string &modelName, const std::string &path)
TritonOneEDAnalyzer(edm::ParameterSet const &cfg)
virtual void tritonEndJob()