ATLAS Offline Software
Loading...
Searching...
No Matches
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
11namespace AthCUDA {
12
22
23 public:
26
28 void finished( int code );
29
31 int wait();
32
33 private:
35 int m_code;
37 std::mutex m_mutex;
38
39 }; // class KernelStatus
40
41} // namespace AthCUDA
42
43#endif // ATHCUDAKERNEL_KERNELSTATUS_H
int m_code
The result of the kernel execution.
KernelStatus()
Default constructor.
int wait()
Wait for the execution of the kernel to finish.
std::mutex m_mutex
Mutex used for waiting for the CUDA task to finish.
void finished(int code)
Function called by "the framework" when the CUDA kernel finished.
Definition Info.h:14