tvm
Loading...
Searching...
No Matches
tcgen05.h
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
24#ifndef TVM_BACKEND_CUDA_OP_TCGEN05_H_
25#define TVM_BACKEND_CUDA_OP_TCGEN05_H_
26
27#include <tvm/ir/attrs.h>
28
29namespace tvm {
30namespace backend {
31namespace cuda {
32
35 ffi::String d_dtype;
36 ffi::String a_dtype;
37 ffi::String b_dtype;
38 int64_t M;
39 int64_t N;
40 int64_t K;
41 bool trans_a;
42 bool trans_b;
43 int64_t n_cta_groups = 1;
44 bool neg_a = false;
45 bool neg_b = false;
46 bool sat_d = false;
47 bool is_sparse = false;
48
49 static void RegisterReflection();
50 TVM_FFI_DECLARE_OBJECT_INFO_FINAL("tirx.cuda.TCGen05InstrDescriptorAttrs",
52};
53
56 ffi::String d_dtype;
57 ffi::String a_dtype;
58 ffi::String b_dtype;
59 ffi::String sfa_dtype;
60 ffi::String sfb_dtype;
61 int64_t M;
62 int64_t N;
63 int64_t K;
64 bool trans_a;
65 bool trans_b;
66 int64_t n_cta_groups = 1;
67 bool neg_a = false;
68 bool neg_b = false;
69 bool is_sparse = false;
70
71 static void RegisterReflection();
72 TVM_FFI_DECLARE_OBJECT_INFO_FINAL("tirx.cuda.TCGen05InstrDescriptorBlockScaledAttrs",
74};
75
76} // namespace cuda
77} // namespace backend
78} // namespace tvm
79
80#endif // TVM_BACKEND_CUDA_OP_TCGEN05_H_
Helpers for attribute objects.
Base class of all attribute class.
Definition attrs.h:50
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition attr.h:23
Static options for the dense tcgen05 instruction descriptor.
Definition tcgen05.h:34
ffi::String a_dtype
Definition tcgen05.h:36
ffi::String d_dtype
Definition tcgen05.h:35
ffi::String b_dtype
Definition tcgen05.h:37
int64_t n_cta_groups
Definition tcgen05.h:43
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("tirx.cuda.TCGen05InstrDescriptorAttrs", TCGen05InstrDescriptorAttrs, AttrsNode)
Static options for the block-scaled tcgen05 instruction descriptor.
Definition tcgen05.h:55
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("tirx.cuda.TCGen05InstrDescriptorBlockScaledAttrs", TCGen05InstrDescriptorBlockScaledAttrs, AttrsNode)