1/*******************************************************************************
2* Copyright 2019-2022 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#include "common/impl_list_item.hpp"
18
19#include "gpu/gpu_impl_list.hpp"
20
21#include "gpu/ocl/gen9_concat.hpp"
22#include "gpu/ocl/multi_concat.hpp"
23#include "gpu/ocl/ref_concat.hpp"
24#include "gpu/ocl/simple_concat.hpp"
25
26namespace dnnl {
27namespace impl {
28namespace gpu {
29
30namespace {
31#define CONCAT_INSTANCE(...) \
32 impl_list_item_t(impl_list_item_t::concat_type_deduction_helper_t< \
33 __VA_ARGS__::pd_t>()),
34
35// clang-format off
36constexpr impl_list_item_t concat_impl_list[] = REG_CONCAT_P({
37 CONCAT_INSTANCE(ocl::simple_concat_t)
38 CONCAT_INSTANCE(ocl::gen9_concat_t)
39 CONCAT_INSTANCE(ocl::multi_concat_t)
40 CONCAT_INSTANCE(ocl::ref_concat_t)
41 nullptr,
42});
43// clang-format on
44#undef INSTANCE
45} // namespace
46
47const impl_list_item_t *gpu_impl_list_t::get_concat_implementation_list() {
48 return concat_impl_list;
49}
50
51} // namespace gpu
52} // namespace impl
53} // namespace dnnl
54