|
tvm
|
Function specific attribute names. More...
Variables | |
| constexpr ffi::reflection::AttrKey< ffi::Array< ffi::String > > | kKernelLaunchParams |
| Ordered launch-parameter tags for a device kernel. | |
| constexpr ffi::reflection::AttrKey< bool > | kNoAlias {"tirx.noalias"} |
| Whether to set noalias rule on the function arguments. | |
| constexpr ffi::reflection::AttrKey< bool > | kIsEntryFunc {"tirx.is_entry_func"} |
| Mark the function as the entry function of the final generated runtime module. | |
| constexpr ffi::reflection::AttrKey< bool > | kIsGlobalFunc {"tirx.is_global_func"} |
| Mark the function as the global function called from the host. | |
| constexpr ffi::reflection::AttrKey< bool > | kIsHostFunc {"tirx.is_host_func"} |
| Mark the function as run on the host, mutually exclusive with kTarget. | |
| constexpr ffi::reflection::AttrKey< bool > | kPersistentKernel {"tirx.persistent_kernel"} |
| Mark the kernel as persistent. | |
| constexpr const char * | kPragmaUnroll = "tirx.pragma_unroll" |
| constexpr ffi::reflection::AttrKey< bool > | kDisableUnroll {"tirx.disable_unroll"} |
| constexpr ffi::reflection::AttrKey< int64_t > | kAutoUnrollMaxStep {"tirx.auto_unroll_max_step"} |
| For annotation: maximum work for automatic unrolling. | |
| constexpr ffi::reflection::AttrKey< bool > | kUnrollExplicit {"tirx.unroll_explicit"} |
| For annotation: expand unrolled bodies instead of preserving unrolled loops. | |
| constexpr ffi::reflection::AttrKey< bool > | kVolatile {"tirx.volatile"} |
| Annotation key on AllocTensor marking the allocation as volatile. | |
|
inlineconstexpr |
For annotation: maximum work for automatic unrolling.
Integer policy inherited by nested loops unless they override it. Consumed by UnrollLoop.
|
inlineconstexpr |
|
inlineconstexpr |
Mark the function as the entry function of the final generated runtime module.
Type: bool
|
inlineconstexpr |
Mark the function as the global function called from the host.
Type: bool
|
inlineconstexpr |
Mark the function as run on the host, mutually exclusive with kTarget.
Type: bool
|
inlineconstexpr |
Ordered launch-parameter tags for a device kernel.
Type: ffi::Array<ffi::String>
We call a device kernel launch function f using the following convention:
Call(f, [arg1, arg2, ..., arg_n, work_size_1, work_size_2, ... work_size_m, dyn_shmem_size])
Flag-only launch tags do not add packed operands. The dynamic shared-memory operand is present only when its value-bearing tag is listed.
The list of kernel launch params indicates which additional parameters will be provided to the ffi::Function by the calling scope.
"threadIdx.x", "threadIdx.y", "threadIdx.z"
The extent of the thread count in x/y/z, to be used when launching the compute kernel on the device. For example, the gridDimX/Y/Z parameters passed to cuLaunchKernel when launching a CUDA kernel, or the groupCountX/Y/Z parameters passed to vkCmdDispatch when dispatching a compute pipeline to Vulkan.
"blockIdx.x", "blockIdx.y", "blockIdx.z"
The extent of the block iterators, to be used when launching the compute kernel on the device. For example, the blockDimX/Y/Z parameters passed to cuLaunchKernel when launching a CUDA kernel. For runtimes that do not require the block to be provided externally, this parameter is ignored. For example, the spv::ExecutionModeLocalSize for SPIR-V shaders on Vulkan, where this parameter is defined in the shader.
tvm::runtime::launch_param::kUseDynamicSharedMemoryTag
The dynamic shared-memory byte count passed for this launch.
Defined as "tirx.use_dyn_shared_memory".
tvm::runtime::launch_param::kUseRequiredBlockDimension
Flag-only launch attributes. These tags add no packed operand.
|
inlineconstexpr |
Whether to set noalias rule on the function arguments.
Type: bool
|
inlineconstexpr |
Mark the kernel as persistent.
|
constexpr |
|
inlineconstexpr |
For annotation: expand unrolled bodies instead of preserving unrolled loops.
Integer policy inherited by nested loops unless they override it. Consumed by UnrollLoop.
|
inlineconstexpr |
Annotation key on AllocTensor marking the allocation as volatile.