1 | /******************************************************************************* |
---|---|
2 | * Copyright 2021-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 "gpu/gpu_impl_list.hpp" |
18 | |
19 | #include "gpu/ocl/combined_reduction.hpp" |
20 | #include "gpu/ocl/gen9_reduction.hpp" |
21 | #include "gpu/ocl/ref_reduction.hpp" |
22 | |
23 | namespace dnnl { |
24 | namespace impl { |
25 | namespace gpu { |
26 | |
27 | namespace { |
28 | |
29 | // clang-format off |
30 | constexpr impl_list_item_t impl_list[] = REG_REDUCTION_P({ |
31 | INSTANCE(ocl::gen9_reduction_t) |
32 | INSTANCE(ocl::combined_reduction_t) |
33 | INSTANCE(ocl::ref_reduction_t) |
34 | nullptr, |
35 | }); |
36 | // clang-format on |
37 | } // namespace |
38 | |
39 | const impl_list_item_t *get_reduction_impl_list(const reduction_desc_t *desc) { |
40 | UNUSED(desc); |
41 | return impl_list; |
42 | } |
43 | |
44 | } // namespace gpu |
45 | } // namespace impl |
46 | } // namespace dnnl |
47 |