22 return cache_[dev].makeOrGet([dev]() {
24 cudaCheck(cudaStreamCreateWithFlags(&stream, cudaStreamNonBlocking));
25 return std::unique_ptr<BareStream, Deleter>(
stream,
Deleter{dev});
void operator()(cudaStream_t stream) const
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
std::shared_ptr< std::remove_pointer_t< cudaStream_t >> SharedStreamPtr
StreamCache & getStreamCache()
std::vector< edm::ReusableObjectHolder< BareStream, Deleter > > cache_
#define cudaCheck(ARG,...)