 |
Ginkgo
Generated from pipelines/2969282958 branch based on develop. Ginkgo version 2.0.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>
33 cuda_stream(
int device_id,
bool non_blocking =
false);
52 CUstream_st*
get()
const;
79 hip_stream(
int device_id,
bool non_blocking =
false);
98 GKO_HIP_STREAM_STRUCT*
get()
const;
101 GKO_HIP_STREAM_STRUCT* stream_;
110 #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:66
The Ginkgo namespace.
Definition: abstract_factory.hpp:19
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.