ATLAS Offline Software
Loading...
Searching...
No Matches
AthHIP/AthHIPComps/src/Stream.h
Go to the documentation of this file.
1//
2// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3//
4#ifndef ATHHIPCOMPS_STREAM_H
5#define ATHHIPCOMPS_STREAM_H
6
7// HIP include(s).
8#include <hip/hip_runtime_api.h>
9
10// System include(s).
11#include <string>
12
13namespace AthHIP::Details {
14
16class Stream {
17
18 public:
20 Stream();
22 ~Stream();
23
25 hipStream_t stream() const;
26
28 std::string name() const;
29
30 private:
32 hipStream_t m_stream{nullptr};
33
34}; // class Stream
35
36} // namespace AthHIP::Details
37
38#endif // ATHHIPCOMPS_STREAM_H
hipStream_t m_stream
The HIP stream to use for asynchronous copies.
std::string name() const
Get the name of the device associated with the stream.
hipStream_t stream() const
Get the HIP stream.
~Stream()
Destructor, destroying the HIP stream.
Stream()
Constructor, creating the HIP stream.