1 #include <cuda_runtime.h>
23 BeamSpotHost() : data_h_{cms::cuda::make_host_noncached_unique<BeamSpotPOD>(cudaHostAllocWriteCombined)} {}
25 BeamSpotHost(BeamSpotHost
const&) =
delete;
26 BeamSpotHost(BeamSpotHost&&) =
default;
28 BeamSpotHost& operator=(BeamSpotHost
const&) =
delete;
29 BeamSpotHost& operator=(BeamSpotHost&&) =
default;
53 return std::make_unique<BeamSpotHost>();
67 bsPutToken_{produces<cms::cuda::Product<BeamSpotCUDA>>()} {}
72 descriptions.
add(
"offlineBeamSpotToCUDA",
desc);
80 auto& bsHost = streamCache(streamID)->ptr();
86 bsHost->sigmaZ =
bs.sigmaZ();
87 bsHost->beamWidthX =
bs.BeamWidthX();
88 bsHost->beamWidthY =
bs.BeamWidthY();
89 bsHost->dxdz =
bs.dxdz();
90 bsHost->dydz =
bs.dydz();
91 bsHost->emittanceX =
bs.emittanceX();
92 bsHost->emittanceY =
bs.emittanceY();
93 bsHost->betaStar =
bs.betaStar();