![]() |
ATLAS Offline Software
|
Tool exposing a CUDA stream service as a CUDA stream tool. More...
#include <StreamSvcAdaptorTool.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 | |
| ServiceHandle< IStreamSvc > | m_svc |
| Handle to the service providing the CUDA streams. | |
Tool exposing a CUDA stream service as a CUDA stream tool.
Client components should ideally only use CUDA streams through the AthCUDA::IStreamTool interface. (For possible future flexibility.) But, at least initially, streams will just be provided by a relatively simple service.
This tool allows us to expose such services with a tool interface.
Definition at line 26 of file StreamSvcAdaptorTool.h.
|
overridevirtual |
Initialize the tool.
Definition at line 13 of file StreamSvcAdaptorTool.cxx.
|
overridevirtual |
Get the CUDA stream to use.
| ctx | The event context for which the stream is requested |
Definition at line 22 of file StreamSvcAdaptorTool.cxx.
|
private |
Handle to the service providing the CUDA streams.
Definition at line 54 of file StreamSvcAdaptorTool.h.