ATLAS Offline Software
Control
AthenaExamples
AthExCUDA
src
LinearTransformTaskExampleAlg.h
Go to the documentation of this file.
1
// Dear emacs, this is -*- c++ -*-
2
//
3
// Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4
//
5
#ifndef ATHEXCUDA_LINEARTRANSFORMTASKEXAMPLEALG_H
6
#define ATHEXCUDA_LINEARTRANSFORMTASKEXAMPLEALG_H
7
8
// AthCUDA include(s).
9
#include "
AthCUDAInterfaces/IKernelRunnerSvc.h
"
10
11
// Framework include(s).
12
#include "GaudiKernel/ServiceHandle.h"
13
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
14
15
namespace
AthCUDAExamples
{
16
25
class
LinearTransformTaskExampleAlg
:
public
AthReentrantAlgorithm
{
26
27
public
:
28
// Inherit the base class's constructor(s).
29
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
30
32
virtual
StatusCode
initialize
()
override
;
33
35
virtual
StatusCode
execute
(
const
EventContext& ctx )
const override
;
36
37
private
:
39
ServiceHandle< AthCUDA::IKernelRunnerSvc >
m_kernelRunnerSvc
{
this
,
40
"KernelRunnerSvc"
,
"AthCUDA::KernelRunnerSvc"
,
41
"The kernel runner service to use"
};
42
43
};
// class LinearTransformTaskExampleAlg
44
45
}
// namespace AthCUDAExamples
46
47
#endif // ATHEXCUDA_LINEARTRANSFORMTASKEXAMPLEALG_H
AthCUDAExamples::LinearTransformTaskExampleAlg
Example algorithm exercising the AthCUDA core code/services.
Definition:
LinearTransformTaskExampleAlg.h:25
AthCUDAExamples
Definition:
cudaMultiply.h:11
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition:
AthReentrantAlgorithm.h:74
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IKernelRunnerSvc.h
AthCUDAExamples::LinearTransformTaskExampleAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
Definition:
LinearTransformTaskExampleAlg.cxx:24
AthReentrantAlgorithm.h
AthCUDAExamples::LinearTransformTaskExampleAlg::initialize
virtual StatusCode initialize() override
Function initialising the algorithm.
Definition:
LinearTransformTaskExampleAlg.cxx:14
AthCUDAExamples::LinearTransformTaskExampleAlg::m_kernelRunnerSvc
ServiceHandle< AthCUDA::IKernelRunnerSvc > m_kernelRunnerSvc
The kernel runner service to use.
Definition:
LinearTransformTaskExampleAlg.h:39
ServiceHandle< AthCUDA::IKernelRunnerSvc >
Generated on Mon Sep 29 2025 21:14:09 for ATLAS Offline Software by
1.8.18