XeTLA v0.3.6
IntelĀ® Xe Templates for Linear Algebra - API Definition Document
 
Loading...
Searching...
No Matches
epilogue_policy.hpp
Go to the documentation of this file.
1/*******************************************************************************
2* Copyright (c) 2022-2023 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
19
20#pragma once
21
23
24namespace gpu::xetla::group {
25
28
31template <gpu_arch arch_tag_>
33 static constexpr gpu_arch arch_tag = arch_tag_;
34};
35
39template <typename tile_op_t_, gpu_arch arch_tag_>
41 using tile_op_t = tile_op_t_;
42 static constexpr gpu_arch arch_tag = arch_tag_;
43};
44
51template <typename dequant_op_t_, typename tile_op_t_, typename quant_op_t_,
52 gpu_arch arch_tag_, typename dtype_dequant_ = float>
54 using dequant_op_t = dequant_op_t_;
55 using tile_op_t = tile_op_t_;
56 using quant_op_t = quant_op_t_;
57 static constexpr gpu_arch arch_tag = arch_tag_;
58 using dtype_dequant = dtype_dequant_;
59};
60
64template <gpu_arch arch_tag_>
66 static constexpr gpu_arch arch_tag = arch_tag_;
67};
69
70} // namespace gpu::xetla::group
C++ API.
Definition limitation.hpp:607
gpu_arch
Definition common.hpp:73
Default epilogue policy for store C.
Definition epilogue_policy.hpp:32
static constexpr gpu_arch arch_tag
Definition epilogue_policy.hpp:33
Epilogue functor, specialized for quantization operator.
Definition epilogue_policy.hpp:53
quant_op_t_ quant_op_t
Definition epilogue_policy.hpp:56
dequant_op_t_ dequant_op_t
Definition epilogue_policy.hpp:54
static constexpr gpu_arch arch_tag
Definition epilogue_policy.hpp:57
dtype_dequant_ dtype_dequant
Definition epilogue_policy.hpp:58
tile_op_t_ tile_op_t
Definition epilogue_policy.hpp:55
Epilogue policy for tile_op + store C fusion.
Definition epilogue_policy.hpp:40
tile_op_t_ tile_op_t
Definition epilogue_policy.hpp:41
static constexpr gpu_arch arch_tag
Definition epilogue_policy.hpp:42
Epilogue policy for store unaligned C.
Definition epilogue_policy.hpp:65
static constexpr gpu_arch arch_tag
Definition epilogue_policy.hpp:66