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/gemm_matmul.hpp" |
20 | #include "gpu/ocl/ref_matmul.hpp" |
21 | |
22 | namespace dnnl { |
23 | namespace impl { |
24 | namespace gpu { |
25 | |
26 | namespace { |
27 | |
28 | // clang-format off |
29 | constexpr impl_list_item_t impl_list[] = REG_MATMUL_P({ |
30 | INSTANCE(ocl::gemm_matmul_t) |
31 | INSTANCE(ocl::ref_matmul_t) |
32 | nullptr, |
33 | }); |
34 | // clang-format on |
35 | } // namespace |
36 | |
37 | const impl_list_item_t *get_matmul_impl_list(const matmul_desc_t *desc) { |
38 | UNUSED(desc); |
39 | return impl_list; |
40 | } |
41 | |
42 | } // namespace gpu |
43 | } // namespace impl |
44 | } // namespace dnnl |
45 | |