1/*******************************************************************************
2* Copyright 2016-2018 Intel Corporation
3*
4* Licensed under the Apache License, Version 2.0 (the "License");
5* you may not use this file except in compliance with the License.
6* You may obtain a copy of the License at
7*
8* http://www.apache.org/licenses/LICENSE-2.0
9*
10* Unless required by applicable law or agreed to in writing, software
11* distributed under the License is distributed on an "AS IS" BASIS,
12* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13* See the License for the specific language governing permissions and
14* limitations under the License.
15*******************************************************************************/
16
17#ifndef STREAM_HPP
18#define STREAM_HPP
19
20#include <assert.h>
21#include "mkldnn.h"
22
23#include "c_types_map.hpp"
24#include "engine.hpp"
25
26struct mkldnn_stream: public mkldnn::impl::c_compatible {
27 mkldnn_stream(mkldnn::impl::engine_t *engine, unsigned flags)
28 : engine_(engine), flags_(flags) {}
29 virtual ~mkldnn_stream() {}
30
31 /** returns stream's engine */
32 mkldnn::impl::engine_t *engine() const { return engine_; }
33
34 /** returns stream's kind */
35 unsigned flags() const { return flags_; }
36
37protected:
38 mkldnn::impl::engine_t *engine_;
39 unsigned flags_;
40};
41
42#endif
43
44// vim: et ts=4 sw=4 cindent cino^=l0,\:0,N-s
45