# TritonGPUOps ### `triton_gpu.alloc_tensor` (triton::gpu::AllocTensorOp) _Allocate tensor_ Syntax: ``` operation ::= `triton_gpu.alloc_tensor` attr-dict `:` type($result) ``` This operation defines a tensor of a particular shape. The contents of the tensor are supposed to be in shared memory. Note: This op can be repalced to a `bufferization.alloc_tensor` in LLVM 16. Traits: ResultsAreSharedEncoding, VerifyTensorLayoutsTrait Interfaces: MemoryEffectOpInterface (MemoryEffectOpInterface) Effects: MemoryEffects::Effect{MemoryEffects::Allocate on ::mlir::SideEffects::DefaultResource} #### Results: | Result | Description | | :----: | ----------- | | `result` | tensor of floating-point values or tensor of integer values or tensor of ptr values ### `triton_gpu.async_bulk_commit_group` (triton::gpu::AsyncBulkCommitGroupOp) _Async bulk commit group_ Syntax: ``` operation ::= `triton_gpu.async_bulk_commit_group` attr-dict ``` Traits: VerifyTensorLayoutsTrait ### `triton_gpu.async_bulk_wait` (triton::gpu::AsyncBulkWaitOp) _Async bulk wait_ Syntax: ``` operation ::= `triton_gpu.async_bulk_wait` attr-dict ``` Traits: VerifyTensorLayoutsTrait #### Attributes:
| Attribute | MLIR Type | Description |
|---|---|---|
num | ::mlir::IntegerAttr | 32-bit signless integer attribute |
| Attribute | MLIR Type | Description |
|---|---|---|
num | ::mlir::IntegerAttr | 32-bit signless integer attribute |
| Attribute | MLIR Type | Description |
|---|---|---|
static_offsets | ::mlir::DenseI64ArrayAttr | i64 dense array attribute |
static_sizes | ::mlir::DenseI64ArrayAttr | i64 dense array attribute |
static_strides | ::mlir::DenseI64ArrayAttr | i64 dense array attribute |
| Attribute | MLIR Type | Description |
|---|---|---|
cache | ::mlir::triton::CacheModifierAttr | allowed 32-bit signless integer cases: 1, 2, 3, 4, 5, 6{{% markdown %}}Enum cases: * none (`NONE`) * ca (`CA`) * cg (`CG`) * wb (`WB`) * cs (`CS`) * wt (`WT`){{% /markdown %}} |
evict | ::mlir::triton::EvictionPolicyAttr | allowed 32-bit signless integer cases: 1, 2, 3{{% markdown %}}Enum cases: * evict_normal (`NORMAL`) * evict_first (`EVICT_FIRST`) * evict_last (`EVICT_LAST`){{% /markdown %}} |
isVolatile | ::mlir::BoolAttr | bool attribute |
axis | ::mlir::IntegerAttr | 32-bit signless integer attribute |
| Attribute | MLIR Type | Description |
|---|---|---|
cache | ::mlir::triton::CacheModifierAttr | allowed 32-bit signless integer cases: 1, 2, 3, 4, 5, 6{{% markdown %}}Enum cases: * none (`NONE`) * ca (`CA`) * cg (`CG`) * wb (`WB`) * cs (`CS`) * wt (`WT`){{% /markdown %}} |
evict | ::mlir::triton::EvictionPolicyAttr | allowed 32-bit signless integer cases: 1, 2, 3{{% markdown %}}Enum cases: * evict_normal (`NORMAL`) * evict_first (`EVICT_FIRST`) * evict_last (`EVICT_LAST`){{% /markdown %}} |
isVolatile | ::mlir::BoolAttr | bool attribute |
axis | ::mlir::IntegerAttr | 32-bit signless integer attribute |