CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TrackingRecHit2DHeterogeneous.cc
Go to the documentation of this file.
6 
7 template <>
9  auto ret = cms::cuda::make_host_unique<float[]>(5 * nHits(), stream);
10  cms::cuda::copyAsync(ret, m_store32, 5 * nHits(), stream);
11  return ret;
12 }
13 
14 template <>
16  auto ret = cms::cuda::make_host_unique<uint32_t[]>(gpuClustering::maxNumModules + 1, stream);
17  cudaCheck(cudaMemcpyAsync(
18  ret.get(), m_hitsModuleStart, sizeof(uint32_t) * (gpuClustering::maxNumModules + 1), cudaMemcpyDefault, stream));
19  return ret;
20 }
21 
22 // the only specialization needed
23 template <>
25  assert(input);
26  m_store32 = input->localCoordToHostAsync(stream);
27 }
cms::cuda::host::unique_ptr< float[]> localCoordToHostAsync(cudaStream_t stream) const
tuple ret
prodAgent to be discontinued
void copyFromGPU(TrackingRecHit2DHeterogeneous< cms::cudacompat::GPUTraits > const *input, cudaStream_t stream)
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
assert(be >=bs)
cms::cuda::host::unique_ptr< uint32_t[]> hitsModuleStartToHostAsync(cudaStream_t stream) const
static std::string const input
Definition: EdmProvDump.cc:47
void copyAsync(device::unique_ptr< T > &dst, const host::unique_ptr< T > &src, cudaStream_t stream)
Definition: copyAsync.h:20
constexpr uint16_t maxNumModules
std::unique_ptr< T, impl::HostDeleter > unique_ptr
#define cudaCheck(ARG,...)
Definition: cudaCheck.h:69