tvm
Loading...
Searching...
No Matches
tensormap.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_TENSORMAP_H_
25#define TVM_BACKEND_CUDA_OP_TENSORMAP_H_
26
27#include <tvm/ir/attrs.h>
28#include <tvm/ir/op.h>
29
30namespace tvm {
31namespace backend {
32namespace cuda {
33
36 DLDataType descriptor_dtype;
37 int64_t rank;
38 int64_t interleave;
39 int64_t swizzle;
40 int64_t l2_promotion;
41 int64_t oob_fill;
43
44 static void RegisterReflection();
45 TVM_FFI_DECLARE_OBJECT_INFO_FINAL("tirx.cuda.TensorMapEncodeTiledAttr", TensorMapEncodeTiledAttr,
46 AttrsNode);
47};
48
57
58} // namespace cuda
59} // namespace backend
60} // namespace tvm
61
62#endif // TVM_BACKEND_CUDA_OP_TENSORMAP_H_
Helpers for attribute objects.
Base class of all attribute class.
Definition attrs.h:50
Reference-counted handle to a canonical named operator.
Definition op.h:147
Canonical primitive operators and their registration.
TVM_TIRX_DLL const Op & tensormap_encode_tiled_op()
Encode a tiled tensor map at invocation time.
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition attr.h:23
#define TVM_TIRX_DLL
Definition base.h:83
Fixed encoding options for tensormap_encode_tiled.
Definition tensormap.h:35
int64_t oob_fill
Definition tensormap.h:41
int64_t force_cu_dtype
Definition tensormap.h:42
int64_t interleave
Definition tensormap.h:38
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("tirx.cuda.TensorMapEncodeTiledAttr", TensorMapEncodeTiledAttr, AttrsNode)
DLDataType descriptor_dtype
Definition tensormap.h:36
int64_t l2_promotion
Definition tensormap.h:40
int64_t swizzle
Definition tensormap.h:39
int64_t rank
Definition tensormap.h:37