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/jit/binary_format.hpp" |
20 | |
21 | #include "gpu/jit/gemm/gen_gemm.hpp" |
22 | #include "gpu/jit/gemm/xe_hp_systolic_gemm.hpp" |
23 | #include "gpu/ocl/gemm/gemm_with_post_ops.hpp" |
24 | #include "gpu/ocl/gemm/gen9_gemm.hpp" |
25 | #include "gpu/ocl/gemm/gen9_gemm_x8x8s32.hpp" |
26 | #include "gpu/ocl/gemm/ref_gemm.hpp" |
27 | #include "gpu/ocl/gemm/xe_lp_gemm.hpp" |
28 | |
29 | namespace dnnl { |
30 | namespace impl { |
31 | namespace gpu { |
32 | |
33 | namespace { |
34 | |
35 | // clang-format off |
36 | constexpr impl_list_item_t impl_list[] = { |
37 | INSTANCE(jit::xe_hp_systolic_gemm_t) |
38 | INSTANCE(ocl::gemm_with_post_ops_t) |
39 | INSTANCE(jit::gen_gemm_t) |
40 | INSTANCE(ocl::xe_lp_gemm_t) |
41 | INSTANCE(ocl::gen9_gemm_x8x8s32_t) |
42 | INSTANCE(ocl::gen9_gemm_t) |
43 | INSTANCE(ocl::ref_gemm_t) |
44 | nullptr, |
45 | }; |
46 | // clang-format on |
47 | } // namespace |
48 | |
49 | const impl_list_item_t *get_gemm_impl_list(const gemm_desc_t *desc) { |
50 | UNUSED(desc); |
51 | return impl_list; |
52 | } |
53 | |
54 | } // namespace gpu |
55 | } // namespace impl |
56 | } // namespace dnnl |
57 |