1/*******************************************************************************
2* Copyright 2020-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_JIT_JIT_GENERATOR_BASE_HPP
18#define GPU_JIT_JIT_GENERATOR_BASE_HPP
19
20#include <vector>
21#include <CL/cl.h>
22
23namespace dnnl {
24namespace impl {
25namespace gpu {
26namespace jit {
27
28struct jit_generator_base {
29 virtual ~jit_generator_base() = default;
30 virtual const char *kernel_name() const = 0;
31 virtual cl_kernel get_kernel(cl_context context, cl_device_id device) = 0;
32};
33
34} // namespace jit
35} // namespace gpu
36} // namespace impl
37} // namespace dnnl
38
39#endif // GPU_JIT_JIT_GENERATOR_BASE_HPP
40