\doxysection{stream.\+hpp}
\hypertarget{base_2stream_8hpp_source}{}\label{base_2stream_8hpp_source}\index{ginkgo/core/base/stream.hpp@{ginkgo/core/base/stream.hpp}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{//\ SPDX-\/FileCopyrightText:\ 2017\ -\/\ 2024\ The\ Ginkgo\ authors}}
\DoxyCodeLine{00002\ \textcolor{comment}{//}}
\DoxyCodeLine{00003\ \textcolor{comment}{//\ SPDX-\/License-\/Identifier:\ BSD-\/3-\/Clause}}
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#ifndef\ GKO\_PUBLIC\_CORE\_BASE\_STREAM\_HPP\_}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#define\ GKO\_PUBLIC\_CORE\_BASE\_STREAM\_HPP\_}}
\DoxyCodeLine{00007\ }
\DoxyCodeLine{00008\ }
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#include\ <ginkgo/core/base/executor.hpp>}}
\DoxyCodeLine{00010\ }
\DoxyCodeLine{00011\ }
\DoxyCodeLine{00012\ \textcolor{keyword}{namespace\ }\doxymbox{\hyperlink{namespacegko}{gko}}\ \{}
\DoxyCodeLine{00013\ }
\DoxyCodeLine{00014\ }
\DoxyCodeLine{00020\ \textcolor{keyword}{class\ }\doxymbox{\hyperlink{classgko_1_1cuda__stream_a885b16a70792317609f90c72a4249e3b}{cuda\_stream}}\ \{}
\DoxyCodeLine{00021\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00023\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1cuda__stream_a885b16a70792317609f90c72a4249e3b}{cuda\_stream}}();}
\DoxyCodeLine{00024\ }
\DoxyCodeLine{00030\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1cuda__stream_ab68accd2a7f0796f064fc49a1c27479c}{cuda\_stream}}(\textcolor{keywordtype}{int}\ device\_id);}
\DoxyCodeLine{00031\ }
\DoxyCodeLine{00033\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1cuda__stream_a5a6c6243d4370032a018b8ed4eb49378}{\string~cuda\_stream}}();}
\DoxyCodeLine{00034\ }
\DoxyCodeLine{00035\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1cuda__stream_a885b16a70792317609f90c72a4249e3b}{cuda\_stream}}(\textcolor{keyword}{const}\ \doxymbox{\hyperlink{classgko_1_1cuda__stream_a885b16a70792317609f90c72a4249e3b}{cuda\_stream}}\&)\ =\ \textcolor{keyword}{delete};}
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00038\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1cuda__stream_a69c4b9eb64aff16655733e952414c446}{cuda\_stream}}(\doxymbox{\hyperlink{classgko_1_1cuda__stream_a885b16a70792317609f90c72a4249e3b}{cuda\_stream}}\&\&);}
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00040\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1cuda__stream_a885b16a70792317609f90c72a4249e3b}{cuda\_stream}}\&\ operator=(\textcolor{keyword}{const}\ \doxymbox{\hyperlink{classgko_1_1cuda__stream_a885b16a70792317609f90c72a4249e3b}{cuda\_stream}}\&)\ =\ \textcolor{keyword}{delete};}
\DoxyCodeLine{00041\ }
\DoxyCodeLine{00043\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1cuda__stream_a885b16a70792317609f90c72a4249e3b}{cuda\_stream}}\&\ \doxymbox{\hyperlink{classgko_1_1cuda__stream_a7fe861a6a988de307998b5d8f80e3671}{operator=}}(\doxymbox{\hyperlink{classgko_1_1cuda__stream_a885b16a70792317609f90c72a4249e3b}{cuda\_stream}}\&\&)\ =\ \textcolor{keyword}{delete};}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00049\ \ \ \ \ CUstream\_st*\ \doxymbox{\hyperlink{classgko_1_1cuda__stream_a8125fbcb859c04140fe4513b019251d4}{get}}()\ \textcolor{keyword}{const};}
\DoxyCodeLine{00050\ }
\DoxyCodeLine{00051\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00052\ \ \ \ \ CUstream\_st*\ stream\_;}
\DoxyCodeLine{00053\ }
\DoxyCodeLine{00054\ \ \ \ \ \textcolor{keywordtype}{int}\ device\_id\_;}
\DoxyCodeLine{00055\ \};}
\DoxyCodeLine{00056\ }
\DoxyCodeLine{00057\ }
\DoxyCodeLine{00063\ \textcolor{keyword}{class\ }\doxymbox{\hyperlink{classgko_1_1hip__stream_adbbf3251c2e50ae1430ebd2dcb77c0d9}{hip\_stream}}\ \{}
\DoxyCodeLine{00064\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00066\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1hip__stream_adbbf3251c2e50ae1430ebd2dcb77c0d9}{hip\_stream}}();}
\DoxyCodeLine{00067\ }
\DoxyCodeLine{00073\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1hip__stream_ab6adfa7a3afcfcb97ba5d7f06c085240}{hip\_stream}}(\textcolor{keywordtype}{int}\ device\_id);}
\DoxyCodeLine{00074\ }
\DoxyCodeLine{00076\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1hip__stream_ae66a34d15d251ab942af982d409a8e93}{\string~hip\_stream}}();}
\DoxyCodeLine{00077\ }
\DoxyCodeLine{00078\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1hip__stream_adbbf3251c2e50ae1430ebd2dcb77c0d9}{hip\_stream}}(\textcolor{keyword}{const}\ \doxymbox{\hyperlink{classgko_1_1hip__stream_adbbf3251c2e50ae1430ebd2dcb77c0d9}{hip\_stream}}\&)\ =\ \textcolor{keyword}{delete};}
\DoxyCodeLine{00079\ }
\DoxyCodeLine{00081\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1hip__stream_a0b346c57d2cc9e9ee37deeaa5ac8ce60}{hip\_stream}}(\doxymbox{\hyperlink{classgko_1_1hip__stream_adbbf3251c2e50ae1430ebd2dcb77c0d9}{hip\_stream}}\&\&);}
\DoxyCodeLine{00082\ }
\DoxyCodeLine{00083\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1hip__stream_adbbf3251c2e50ae1430ebd2dcb77c0d9}{hip\_stream}}\&\ operator=(\textcolor{keyword}{const}\ \doxymbox{\hyperlink{classgko_1_1hip__stream_adbbf3251c2e50ae1430ebd2dcb77c0d9}{hip\_stream}}\&)\ =\ \textcolor{keyword}{delete};}
\DoxyCodeLine{00084\ }
\DoxyCodeLine{00086\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1hip__stream_adbbf3251c2e50ae1430ebd2dcb77c0d9}{hip\_stream}}\&\ \doxymbox{\hyperlink{classgko_1_1hip__stream_a0c455d59dede3c380f9acb950b10956e}{operator=}}(\doxymbox{\hyperlink{classgko_1_1hip__stream_adbbf3251c2e50ae1430ebd2dcb77c0d9}{hip\_stream}}\&\&)\ =\ \textcolor{keyword}{delete};}
\DoxyCodeLine{00087\ }
\DoxyCodeLine{00092\ \ \ \ \ GKO\_HIP\_STREAM\_STRUCT*\ \doxymbox{\hyperlink{classgko_1_1hip__stream_ac76f8c38f0ec515180441491bdd37748}{get}}()\ \textcolor{keyword}{const};}
\DoxyCodeLine{00093\ }
\DoxyCodeLine{00094\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00095\ \ \ \ \ GKO\_HIP\_STREAM\_STRUCT*\ stream\_;}
\DoxyCodeLine{00096\ }
\DoxyCodeLine{00097\ \ \ \ \ \textcolor{keywordtype}{int}\ device\_id\_;}
\DoxyCodeLine{00098\ \};}
\DoxyCodeLine{00099\ }
\DoxyCodeLine{00100\ }
\DoxyCodeLine{00101\ \}\ \ \textcolor{comment}{//\ namespace\ gko}}
\DoxyCodeLine{00102\ }
\DoxyCodeLine{00103\ }
\DoxyCodeLine{00104\ \textcolor{preprocessor}{\#endif\ \ }\textcolor{comment}{//\ GKO\_PUBLIC\_CORE\_BASE\_STREAM\_HPP\_}}

\end{DoxyCode}
