Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-26 08:22:12

0001 /** TRACCC library, part of the ACTS project (R&D line)
0002  *
0003  * (c) 2022-2025 CERN for the benefit of the ACTS project
0004  *
0005  * Mozilla Public License Version 2.0
0006  */
0007 
0008 #pragma once
0009 
0010 // HIP include(s).
0011 #include <hip/hip_runtime_api.h>
0012 
0013 namespace traccc::hip::details {
0014 
0015 /// RAII wrapper around @c hipStream_t
0016 ///
0017 /// It is used only internally by the HIP library, so it does not need to
0018 /// provide any nice interface.
0019 ///
0020 struct opaque_stream {
0021   /// Default constructor
0022   opaque_stream(int device);
0023   /// Destructor
0024   ~opaque_stream();
0025 
0026   /// Device that the stream is associated to
0027   int m_device;
0028   /// Stream managed by the object
0029   hipStream_t m_stream;
0030 
0031 };  // class opaque_stream
0032 
0033 }  // namespace traccc::hip::details