1/*******************************************************************************
2* Copyright 2021 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 GPU_OCL_OCL_MEMORY_STORAGE_BASE_HPP
18#define GPU_OCL_OCL_MEMORY_STORAGE_BASE_HPP
19
20#include "common/memory_storage.hpp"
21#include "gpu/ocl/ocl_c_types_map.hpp"
22
23namespace dnnl {
24namespace impl {
25namespace gpu {
26namespace ocl {
27
28class ocl_memory_storage_base_t : public memory_storage_t {
29public:
30 // Explicitly define ctors due to a "circular dependencies" bug in ICC.
31 ocl_memory_storage_base_t(
32 engine_t *engine, const memory_storage_t *parent_storage)
33 : memory_storage_t(engine, parent_storage) {}
34 ocl_memory_storage_base_t(engine_t *engine)
35 : ocl_memory_storage_base_t(engine, this) {}
36
37 virtual memory_kind_t memory_kind() const = 0;
38};
39
40} // namespace ocl
41} // namespace gpu
42} // namespace impl
43} // namespace dnnl
44
45#endif // GPU_OCL_OCL_MEMORY_STORAGE_BASE_HPP
46