|
Ginkgo
Generated from pipelines/1330831941 branch based on master. Ginkgo version 1.8.0
A numerical linear algebra library targeting many-core architectures
|
5 #ifndef GKO_PUBLIC_CORE_BASE_STREAM_HPP_
6 #define GKO_PUBLIC_CORE_BASE_STREAM_HPP_
9 #include <ginkgo/core/base/executor.hpp>
49 CUstream_st*
get()
const;
92 GKO_HIP_STREAM_STRUCT*
get()
const;
95 GKO_HIP_STREAM_STRUCT* stream_;
104 #endif // GKO_PUBLIC_CORE_BASE_STREAM_HPP_
~hip_stream()
Destroys the custom HIP stream, if it isn't empty.
~cuda_stream()
Destroys the custom CUDA stream, if it isn't empty.
An RAII wrapper for a custom CUDA stream.
Definition: stream.hpp:20
An RAII wrapper for a custom HIP stream.
Definition: stream.hpp:63
The Ginkgo namespace.
Definition: abstract_factory.hpp:20
CUstream_st * get() const
Returns the native CUDA stream handle.
cuda_stream()
Creates an empty stream wrapper, representing the default stream.
CUstream_st * get() const
Returns the native HIP stream handle.
hip_stream()
Creates an empty stream wrapper, representing the default stream.