ATLAS Offline Software
KernelStatus.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 ATHCUDAKERNEL_KERNELSTATUS_H
6 #define ATHCUDAKERNEL_KERNELSTATUS_H
7 
8 // System include(s).
9 #include <mutex>
10 
11 namespace AthCUDA {
12 
21  class KernelStatus {
22 
23  public:
25  KernelStatus();
26 
28  void finished( int code );
29 
31  int wait();
32 
33  private:
35  int m_code;
38 
39  }; // class KernelStatus
40 
41 } // namespace AthCUDA
42 
43 #endif // ATHCUDAKERNEL_KERNELSTATUS_H
AthCUDA::KernelStatus::m_code
int m_code
The result of the kernel execution.
Definition: KernelStatus.h:35
BeamSpot::mutex
std::mutex mutex
Definition: InDetBeamSpotVertex.cxx:18
AthCUDA::KernelStatus::KernelStatus
KernelStatus()
Default constructor.
Definition: KernelStatus.cxx:10
AthCUDA::KernelStatus
Helper object used for synchronising GPU kernel tasks.
Definition: KernelStatus.h:21
histSizes.code
code
Definition: histSizes.py:129
AthCUDA::KernelStatus::wait
int wait()
Wait for the execution of the kernel to finish.
Definition: KernelStatus.cxx:23
AthCUDA
Definition: Info.h:14
AthCUDA::KernelStatus::m_mutex
std::mutex m_mutex
Mutex used for waiting for the CUDA task to finish.
Definition: KernelStatus.h:37
AthCUDA::KernelStatus::finished
void finished(int code)
Function called by "the framework" when the CUDA kernel finished.
Definition: KernelStatus.cxx:16