![]() |
ATLAS Offline Software
|
Tool providing a separate (single) CUDA stream to the component using it. More...
#include <PerComponentStreamTool.h>
Public Member Functions | |
Function(s) inherited from @c AthAlgTool | |
| virtual StatusCode | initialize () override |
| Initialize the tool. | |
Function(s) inherited from @c IStreamTool | |
| virtual cudaStream_t | stream (const EventContext &ctx) const override |
| Get the CUDA stream to use. | |
Private Attributes | |
| std::unique_ptr< const Details::Stream > | m_stream |
| Single CUDA stream. | |
Tool providing a separate (single) CUDA stream to the component using it.
This means that in algorithms using this tool, operations from different events would end up being executed in a single stream. But operations from different components/algorithms could be executed in parallel.
Definition at line 27 of file PerComponentStreamTool.h.
|
overridevirtual |
Initialize the tool.
Definition at line 14 of file PerComponentStreamTool.cxx.
|
overridevirtual |
Get the CUDA stream to use.
| ctx | The event context for which the stream is requested |
Definition at line 26 of file PerComponentStreamTool.cxx.
|
private |
Single CUDA stream.
Definition at line 55 of file PerComponentStreamTool.h.