|
ATLAS Offline Software
|
Go to the documentation of this file.
21 ATH_MSG_INFO(
"CUDA device(s) not available. Not setting up "
23 return StatusCode::SUCCESS;
28 std::make_unique< StreamPoolSvcImpl >(
m_nStreams.value(), *
this );
34 return StatusCode::SUCCESS;
46 return StatusCode::SUCCESS;
65 return m_impl->getAvailableStream();
static const Info & instance()
Singleton accessor function.
std::unique_ptr< StreamPoolSvcImpl > m_impl
The object implementing the interaction with CUDA.
virtual StatusCode initialize() override
Initialise the service.
Gaudi::Property< unsigned int > m_nStreams
The number of streams to use.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode finalize() override
Finalise the service.
virtual bool isEmpty() const override
Check whether any streams are available for the job.
virtual void yieldStream(StreamHolder &stream) override
Put a given stream back into the pool.
Helper class for handling CUDA streams.
virtual StreamHolder getAvailableStream() override
Get a stream from the pool.